From 7fa4f626c6c92f7121e52b360cba8b2d570b9f0c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 30 Oct 2017 18:29:26 +0100 Subject: [PATCH] Please cherry-pick: - added notice for important copy-step in WAR project - added WAR project as dependency for building full EAR archive MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- INSTALL.txt | 126 ++++++++++++++++++----------------- nbproject/project.properties | 6 +- nbproject/project.xml | 12 ++++ 3 files changed, 83 insertions(+), 61 deletions(-) diff --git a/INSTALL.txt b/INSTALL.txt index 2d90228..8ddaafe 100644 --- a/INSTALL.txt +++ b/INSTALL.txt @@ -1,60 +1,66 @@ -Installation instructions: -========================== - -0) Create an empty database and setup proper permissions - -1) (Import install/install.sql into your new database) Currently DROP+CREATE - -2) Setup a JDBC pool. I took the simple driver: - -Pool name: JFinancialsPool -Resource type: java.sql.Driver -Driver: MySQL -Driver class: org.mariadb.jdbc.Driver - -URL: jdbc:mysql://localhost/your_database -user: your_login -password: your_password - -3) Setup a JDBC resource: - -JNDI name: jdbc/jfinancials -Pool name: JFinancialsPool - -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. - -5) Setup a JMS connection factory: - -JNDI name: jms/jfinancials-queue-factory -Resource type: javax.jms.QueueConnectionFactory - -6) Setup JMS message queue: - -JNDI name: jms/jfinancials-email-queue -Physical destination name: jfinancialsSendEmail -Resource type: javax.jms.Queue - -7) Setup Java Mail session: - -JNDI name: jfinancialsSmtpSession -Mail host: -Default user: -Default sender address: noreply@your-domain.example - -Optional, but more secure/sometimes required advanced properties: - -mail.smtp.password : -mail.smtp.port : -mail.smtp.auth : true - -8) Setup JMS message queue - -JNDI name: jms/jfinancials-user-activity-log -Physical destination name: jfinancialsUserActivityLog -Resource type: javax.jms.Queue +Installation instructions: +========================== + +1) Create an empty database and setup proper permissions and user account. You + should create a separate database and user for each project you are going to + run on it for maximum security. + +2) Setup a JDBC pool. I took the simple driver: + +Pool name: JFinancialsPool +Resource type: java.sql.Driver +Driver: MariaDB +Driver class: org.mariadb.jdbc.Driver + +URL: jdbc:mysql://localhost/your_database +user: your_login +password: your_password + +3) Setup a JDBC resource: + +JNDI name: jdbc/jfinancials +Pool name: JFinancialsPool + +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. + +5) Setup a JMS connection factory: + +JNDI name: jms/jfinancials-queue-factory +Resource type: javax.jms.QueueConnectionFactory + +6) Setup JMS message queue: + +JNDI name: jms/jfinancials-email-queue +Physical destination name: jfinancialsSendEmail +Resource type: javax.jms.Queue + +7) Setup Java Mail session: + +JNDI name: jfinancialsSmtpSession +Mail host: +Default user: +Default sender address: noreply@your-domain.example + +Optional, but more secure/sometimes required advanced properties: + +mail.smtp.password : +mail.smtp.port : +mail.smtp.auth : true + +8) Setup JMS message queue + +JNDI name: jms/jfinancials-user-activity-log +Physical destination name: jfinancialsUserActivityLog +Resource type: javax.jms.Queue + +9) In WAR project, copy local_xx_XX.properties-dist to local_de_DE.properties + and local_en_US.properties. If for example your application uses + product_categories from jproduct-core, you may want to add your custom i18n + strings to the local properties files as this doesn't cause any later merge + conflicts as they are ignored by default. diff --git a/nbproject/project.properties b/nbproject/project.properties index e0d9fc3..83c210a 100644 --- a/nbproject/project.properties +++ b/nbproject/project.properties @@ -1,6 +1,7 @@ build.classes.excludes=**/*.java,**/*.form,**/.nbattrs build.dir=build build.generated.dir=${build.dir}/generated +client.module.uri=jfinancials-war client.urlPart= debug.classpath=${javac.classpath}::${jar.content.additional}:${run.classpath} display.browser=true @@ -22,7 +23,8 @@ jar.compress=false jar.content.additional=\ ${reference.jcore-logger-ejb.dist-ear}:\ ${reference.jfinancials-ejb.dist-ear}:\ - ${reference.jfinancials-mailer-ejb.dist-ear} + ${reference.jfinancials-mailer-ejb.dist-ear}:\ + ${reference.jfinancials-war.dist-ear} jar.name=jfinancials.ear javac.debug=true javac.deprecation=false @@ -34,9 +36,11 @@ platform.active=default_platform project.jcore-logger-ejb=../jcore-logger-ejb project.jfinancials-ejb=../jfinancials-ejb project.jfinancials-mailer-ejb=../jfinancials-mailer-ejb +project.jfinancials-war=../jfinancials-war reference.jfinancials-ejb.dist-ear=${project.jfinancials-ejb}/dist/jfinancials-ejb.jar reference.jcore-logger-ejb.dist-ear=${project.jcore-logger-ejb}/dist/jcore-logger-ejb.jar reference.jfinancials-mailer-ejb.dist-ear=${project.jfinancials-mailer-ejb}/dist/jfinancials-mailer-ejb.jar +reference.jfinancials-war.dist-ear=${project.jfinancials-war}/dist/jfinancials-war.war resource.dir=setup run.classpath= source.root=. diff --git a/nbproject/project.xml b/nbproject/project.xml index 284ad40..491c17c 100644 --- a/nbproject/project.xml +++ b/nbproject/project.xml @@ -19,6 +19,10 @@ ${reference.jfinancials-mailer-ejb.dist-ear} / + + ${reference.jfinancials-war.dist-ear} + / + @@ -46,6 +50,14 @@ clean-ear dist-ear + + jfinancials-war + j2ee_ear_archive + + dist-ear + clean-ear + dist-ear + -- 2.39.5