]> git.mxchange.org Git - pizzaservice.git/blob - INSTALL.txt
fixed JNDI names, no slash allowed. Then let's only use a-z
[pizzaservice.git] / INSTALL.txt
1 Installation instructions:
2 ==========================
3
4 0) Create an empty database and setup proper permissions
5
6 1) (Import install/install.sql into your new database) Currently DROP+CREATE
7
8 2) Setup a JDBC pool. I took the simple driver:
9
10 Pool name: PizzaServicesPool
11 Resource type: java.sql.Driver
12 Driver: MySQL
13 Driver class: org.mariadb.jdbc.Driver
14
15 URL: jdbc:mysql://localhost/your_database
16 user: your_login
17 password: your_password
18
19 3) Setup a JDBC resource:
20
21 JNDI name: jdbc/pizzaservice
22 Pool name: PizzaServicesPool
23
24 4) In juser-core project you will find a JAR named "commons-codec-1.10.jar" you
25    need to copy this to your $GLASSFISH_DOMAIN/lib/ path to make password
26    encryption working. Please setup sufficient access rights (CHMOD 0644 is
27    enough).
28
29    If you forgot this file to copy and you have copied it now, please restart
30    the Glassfish server so the JAR can be found and loaded.
31
32 5) Setup a JMS connection factory:
33
34 JNDI name: jms/pizzaservice-queue-factory
35 Resource type: javax.jms.QueueConnectionFactory
36
37 6) Setup JMS message queue:
38
39 JNDI name: jms/pizzaservice-email-queue
40 Physical destination name: pizzaservice-send-email
41 Resource type: javax.jms.Queue
42
43 7) Setup Java Mail session:
44
45 JNDI name: pizzaserviceSmtpSession
46 Mail host: <your-smtp-host>
47 Default user: <your-smtp-login-name>
48 Default sender address: noreply@your-domain.example
49
50 Optional, but more secure/sometimes required advanced properties:
51
52 mail.smtp.password : <email password>
53 mail.smtp.port : <email port>
54 mail.smtp.auth : true
55
56 8) Setup JMS message queue
57
58 JNDI name: jms/pizzaservice-user-activity-log
59 Physical destination name: pizzaserviceUserActivityLog
60 Resource type: javax.jms.Queue