2) Setup a JDBC pool. I took the simple driver:
-Pool name: ShopPool
+Pool name: PizzaServicesPool
Resource type: java.sql.Driver
Driver: MySQL
Driver class: org.mariadb.jdbc.Driver
3) Setup a JDBC resource:
-JNDI name: jdbc/shop
-Pool name: ShopPool
+JNDI name: jdbc/pizzaservice
+Pool name: PizzaServicesPool
-4) Setup a JMS connection factory:
+4) In juser-core project you will find a JAR named "commons-codec-1.10.jar" you
+ need to copy this to your $GLASSFISH_DOMAIN/lib/ path to make password
+ encryption working. Please setup sufficient access rights (CHMOD 0644 is
+ enough).
+
+ If you forgot this file to copy and you have copied it now, please restart
+ the Glassfish server so the JAR can be found and loaded.
-JNDI name: jms/shopConnectionFactory
+5) Setup a JMS connection factory:
+
+JNDI name: jms/pizzaservice-queue-factory
Resource type: javax.jms.QueueConnectionFactory
-5) Setup a JMS destination resource:
+6) Setup JMS message queue:
-JNDI name: jms/shopCheckoutQueue
-Physical destination name: checkout
+JNDI name: jms/pizzaservice-email-queue
+Physical destination name: pizzaservice-send-email
Resource type: javax.jms.Queue
-You should be done now. And always try to give informative descriptions, not
-just only "shop" or "factory".
+7) Setup Java Mail session:
-Of course, you need to build and deploy the EAR/WAR files. ;-)
+JNDI name: pizzaservice/smtpSession
+Mail host: <your-smtp-host>
+Default user: <your-smtp-login-name>
+Default sender address: noreply@your-domain.example
-6) In juser-core project you will find a JAR named "commons-codec-1.10.jar" you
- need to copy this to your $GLASSFISH_DOMAIN/lib/ path to make password
- encryption working. Please setup sufficient access rights (CHMOD 0644 is
- enough).
+Optional, but more secure/sometimes required advanced properties:
- If you forgot this file to copy and you have copied it now, please restart
- the Glassfish server so the JAR can be found and loaded.
+mail.smtp.password : <email password>
+mail.smtp.port : <email port>
+mail.smtp.auth : true
+
+8) Setup JMS message queue
+
+JNDI name: jms/pizzaservice-user-activity-log
+Physical destination name: pizzaserviceUserActivityLog
+Resource type: javax.jms.Queue