2) Setup a JDBC pool. I took the simple driver:
-Pool name: AddressbookPool
+Pool name: JFinancialsPool
Resource type: java.sql.Driver
Driver: MySQL
Driver class: org.mariadb.jdbc.Driver
3) Setup a JDBC resource:
-JNDI name: jdbc/addressbook
-Pool name: AddressbookPool
+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
5) Setup a JMS connection factory:
-JNDI name: jms/addressbook-queue-factory
+JNDI name: jms/jfinancials-queue-factory
Resource type: javax.jms.QueueConnectionFactory
6) Setup JMS message queue:
-JNDI name: jms/addressbook-email-queue
-Physical destination name: addressbook-send-email
+JNDI name: jms/jfinancials-email-queue
+Physical destination name: jfinancials-send-email
Resource type: javax.jms.Queue
7) Setup Java Mail session:
-JNDI name: jmail/addressbook
+JNDI name: jmail/jfinancials
Mail host: <your-smtp-host>
Default user: <your-smtp-login-name>
Default sender address: noreply@your-domain.example
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
-<project name="addressbook" default="default" basedir="." xmlns:ear="http://www.netbeans.org/ns/j2ee-earproject/2">
- <description>Builds, tests, and runs the project addressbook.</description>
+<project name="jfinancials" default="default" basedir="." xmlns:ear="http://www.netbeans.org/ns/j2ee-earproject/2">
+ <description>Builds, tests, and runs the project jfinancials.</description>
<import file="nbproject/build-impl.xml"/>
<!--
- cleanup
-->
-<project xmlns:ear2="http://www.netbeans.org/ns/j2ee-earproject/2" basedir=".." default="default" name="addressbook-impl">
+<project xmlns:ear2="http://www.netbeans.org/ns/j2ee-earproject/2" basedir=".." default="default" name="jfinancials-impl">
<import file="ant-deploy.xml"/>
<fail message="Please build using Ant 1.7.1 or higher.">
<condition>
<isset property="build.deploy.on.save"/>
</not>
</condition>
- <ant antfile="${project.addressbook-ejb}/build.xml" inheritall="false" target="dist-ear">
+ <ant antfile="${project.jfinancials-ejb}/build.xml" inheritall="false" target="dist-ear">
<property location="${build.dir}" name="dist.ear.dir"/>
<property name="deploy.on.save" value="${build.deploy.on.save}"/>
</ant>
- <ant antfile="${project.addressbook-ejb}/build.xml" inheritall="false" target="dist-ear">
+ <ant antfile="${project.jfinancials-ejb}/build.xml" inheritall="false" target="dist-ear">
<property location="${build.dir}" name="dist.ear.dir"/>
<property name="deploy.on.save" value="${build.deploy.on.save}"/>
</ant>
</target>
<target depends="init,deps-jar,pre-pre-compile,pre-compile" name="-do-compile-deps">
<copyfiles files="${reference.jcore-logger-ejb.dist-ear}" todir="${build.dir}//"/>
- <copyfiles files="${reference.addressbook-ejb.dist-ear}" todir="${build.dir}//"/>
- <copyfiles files="${reference.addressbook-ejb.dist-ear}" todir="${build.dir}//"/>
+ <copyfiles files="${reference.jfinancials-ejb.dist-ear}" todir="${build.dir}//"/>
+ <copyfiles files="${reference.jfinancials-ejb.dist-ear}" todir="${build.dir}//"/>
</target>
<target name="post-compile">
<!-- Empty placeholder for easier customization. -->
</target>
<target name="-run-deploy-am" unless="no.deps">
<!-- Task to deploy to the Access Manager runtime. -->
- <ant antfile="${project.addressbook-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
- <ant antfile="${project.addressbook-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
+ <ant antfile="${project.jfinancials-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
+ <ant antfile="${project.jfinancials-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
<ant antfile="${project.jcore-logger-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
</target>
<target depends="-init-cos,dist-directory-deploy,pre-run-deploy,-pre-nbmodule-run-deploy,-run-deploy-nb,-init-deploy-ant,-deploy-ant,-run-deploy-am,-post-nbmodule-run-deploy,post-run-deploy" name="run-deploy"/>
<ear2:run-appclient subprojectname="${app.client}"/>
</target>
<target if="j2ee.appclient.mainclass.args" name="-as-retrieve-option-workaround" unless="j2ee.clientName">
- <property name="client.jar" value="${dist.dir}/addressbookClient.jar"/>
+ <property name="client.jar" value="${dist.dir}/jfinancialsClient.jar"/>
<sleep seconds="3"/>
- <copy failonerror="false" file="${wa.copy.client.jar.from}/addressbook/addressbookClient.jar" todir="${dist.dir}"/>
+ <copy failonerror="false" file="${wa.copy.client.jar.from}/jfinancials/jfinancialsClient.jar" todir="${dist.dir}"/>
<copy failonerror="false" flatten="true" todir="${dist.dir}/">
- <fileset dir="${wa.copy.client.jar.from}/addressbook" includes="**/addressbookClient.jar"/>
+ <fileset dir="${wa.copy.client.jar.from}/jfinancials" includes="**/jfinancialsClient.jar"/>
</copy>
- <copy flatten="true" todir="${dist.dir}/addressbookClient">
- <fileset dir="${wa.copy.client.jar.from}/addressbook" includes="**/*.*ar"/>
+ <copy flatten="true" todir="${dist.dir}/jfinancialsClient">
+ <fileset dir="${wa.copy.client.jar.from}/jfinancials" includes="**/*.*ar"/>
</copy>
- <copy failonerror="false" flatten="false" todir="${dist.dir}/addressbookClient">
- <fileset dir="${dist.dir}/gfdeploy/addressbook" includes="**/*.jar"/>
+ <copy failonerror="false" flatten="false" todir="${dist.dir}/jfinancialsClient">
+ <fileset dir="${dist.dir}/gfdeploy/jfinancials" includes="**/*.jar"/>
</copy>
</target>
<target depends="init" name="-init-run-macros">
<isset property="build.deploy.on.save"/>
</not>
</condition>
- <ant antfile="${project.addressbook-ejb}/build.xml" inheritall="false" target="clean-ear">
+ <ant antfile="${project.jfinancials-ejb}/build.xml" inheritall="false" target="clean-ear">
<property location="${build.dir}" name="dist.ear.dir"/>
<property name="deploy.on.save" value="${build.deploy.on.save}"/>
</ant>
- <ant antfile="${project.addressbook-ejb}/build.xml" inheritall="false" target="clean-ear">
+ <ant antfile="${project.jfinancials-ejb}/build.xml" inheritall="false" target="clean-ear">
<property location="${build.dir}" name="dist.ear.dir"/>
<property name="deploy.on.save" value="${build.deploy.on.save}"/>
</ant>
jar.compress=false
jar.content.additional=\
${reference.jcore-logger-ejb.dist-ear}:\
- ${reference.addressbook-ejb.dist-ear}
-jar.name=addressbook.ear
+ ${reference.jfinancials-ejb.dist-ear}
+jar.name=jfinancials.ear
javac.debug=true
javac.deprecation=false
javac.source=1.6
meta.inf=src/conf
no.dependencies=false
platform.active=default_platform
-project.addressbook-ejb=../addressbook-ejb
+project.jfinancials-ejb=../jfinancials-ejb
project.jcore-logger-ejb=../jcore-logger-ejb
-reference.addressbook-ejb.dist-ear=${project.addressbook-ejb}/dist/addressbook-ejb.jar
+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
resource.dir=setup
run.classpath=
<type>org.netbeans.modules.j2ee.earproject</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/j2ee-earproject/2">
- <name>addressbook</name>
+ <name>jfinancials</name>
<minimum-ant-version>1.6.5</minimum-ant-version>
<web-module-libraries/>
<web-module-additional-libraries>
<path-in-war>/</path-in-war>
</library>
<library>
- <file>${reference.addressbook-ejb.dist-ear}</file>
+ <file>${reference.jfinancials-ejb.dist-ear}</file>
<path-in-war>/</path-in-war>
</library>
</web-module-additional-libraries>
</data>
<references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
<reference>
- <foreign-project>addressbook-ejb</foreign-project>
+ <foreign-project>jfinancials-ejb</foreign-project>
<artifact-type>j2ee_ear_archive</artifact-type>
<script>build.xml</script>
<target>dist-ear</target>
+++ /dev/null
-SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
-
--- Exportiere Daten aus Tabelle addressbook.mobile_numbers: ~1 rows (ungefähr)
-
--- Exportiere Daten aus Tabelle addressbook.mobile_provider: ~1 rows (ungefähr)
-INSERT INTO `mobile_provider` (`provider_id`, `provider_dial_prefix`, `provider_entry_created`, `provider_mail_pattern`, `provider_name`, `provider_country_id`) VALUES
- (1, 1511, now(), '%s@t-mobile-sms.de', 'Telekom', 1),
- (2, 1512, now(), '%s@t-mobile-sms.de', 'Telekom', 1),
- (3, 1514, now(), '%s@t-mobile-sms.de', 'Telekom', 1),
- (4, 1515, now(), '%s@t-mobile-sms.de', 'Telekom', 1),
- (5, 1516, now(), '%s@t-mobile-sms.de', 'Telekom', 1),
- (6, 1517, now(), '%s@t-mobile-sms.de', 'Telekom', 1),
- (7, 160, now(), '%s@t-mobile-sms.de', 'Telekom', 1),
- (8, 170, now(), '%s@t-mobile-sms.de', 'Telekom', 1),
- (9, 171, now(), '%s@t-mobile-sms.de', 'Telekom', 1),
- (10, 175, now(), '%s@t-mobile-sms.de', 'Telekom', 1),
- (11, 1520, now(), '%s@vodafone-sms.de', 'Vodafone', 1),
- (12, 1522, now(), '%s@vodafone-sms.de', 'Vodafone', 1),
- (13, 1523, now(), '%s@vodafone-sms.de', 'Vodafone', 1),
- (14, 1525, now(), '%s@vodafone-sms.de', 'Vodafone', 1),
- (15, 162, now(), '%s@vodafone-sms.de', 'Vodafone', 1),
- (16, 172, now(), '%s@vodafone-sms.de', 'Vodafone', 1),
- (17, 173, now(), '%s@vodafone-sms.de', 'Vodafone', 1),
- (18, 174, now(), '%s@vodafone-sms.de', 'Vodafone', 1),
- (19, 1570, now(), '%s@smsmail.eplus.de', 'E-Plus', 1),
- (20, 1573, now(), '%s@smsmail.eplus.de', 'E-Plus', 1),
- (21, 1575, now(), '%s@smsmail.eplus.de', 'E-Plus', 1),
- (22, 1577, now(), '%s@smsmail.eplus.de', 'E-Plus', 1),
- (23, 1578, now(), '%s@smsmail.eplus.de', 'E-Plus', 1),
- (24, 163, now(), '%s@smsmail.eplus.de', 'E-Plus', 1),
- (25, 177, now(), '%s@smsmail.eplus.de', 'E-Plus', 1),
- (26, 178, now(), '%s@smsmail.eplus.de', 'E-Plus', 1),
- (27, 1590, now(), '%s@unknown.invalid', 'O2', 1),
- (28, 176, now(), '%s@unknown.invalid', 'O2', 1),
- (29, 179, now(), '%s@unknown.invalid', 'O2', 1);
-
--- Exportiere Daten aus Tabelle addressbook.company_basic_data: ~0 rows (ungefähr)
-
--- Exportiere Daten aus Tabelle addressbook.company_branch_offices: ~0 rows (ungefähr)
-
--- Exportiere Daten aus Tabelle addressbook.company_contacts: ~0 rows (ungefähr)
-
--- Exportiere Daten aus Tabelle addressbook.company_departments: ~0 rows (ungefähr)
-
--- Exportiere Daten aus Tabelle addressbook.company_employees: ~0 rows (ungefähr)
-
--- Exportiere Daten aus Tabelle addressbook.company_headquarters: ~0 rows (ungefähr)
-
--- Exportiere Daten aus Tabelle addressbook.company_job_positions: ~0 rows (ungefähr)
-
--- Exportiere Daten aus Tabelle addressbook.company_logos: ~0 rows (ungefähr)
-
--- Exportiere Daten aus Tabelle addressbook.company_opening_times: ~0 rows (ungefähr)
-
--- Exportiere Daten aus Tabelle addressbook.country_data: ~0 rows (ungefähr)
-INSERT INTO `country_data` (`country_id`, `country_abroad_dial_prefix`, `country_code`, `country_entry_created`, `country_external_dial_prefix`, `country_i18n_key`, `country_is_local_prefix_required`, `country_phone_code`) VALUES
- (1, '00', 'DE', '2016-04-19 10:08:14', '0', 'COUNTRY_GERMANY', 1, 49);
-
--- Exportiere Daten aus Tabelle addressbook.email_changes: ~0 rows (ungefähr)
-
--- Exportiere Daten aus Tabelle addressbook.fax_numbers: ~0 rows (ungefähr)
-
--- Exportiere Daten aus Tabelle addressbook.phone_numbers: ~1 rows (ungefähr)
-
--- Exportiere Daten aus Tabelle addressbook.users: ~1 rows (ungefähr)
-
-SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS);
--- /dev/null
+SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
+
+-- Exportiere Daten aus Tabelle jfinancials.mobile_numbers: ~1 rows (ungefähr)
+
+-- Exportiere Daten aus Tabelle jfinancials.mobile_provider: ~1 rows (ungefähr)
+INSERT INTO `mobile_provider` (`provider_id`, `provider_dial_prefix`, `provider_entry_created`, `provider_mail_pattern`, `provider_name`, `provider_country_id`) VALUES
+ (1, 1511, now(), '%s@t-mobile-sms.de', 'Telekom', 1),
+ (2, 1512, now(), '%s@t-mobile-sms.de', 'Telekom', 1),
+ (3, 1514, now(), '%s@t-mobile-sms.de', 'Telekom', 1),
+ (4, 1515, now(), '%s@t-mobile-sms.de', 'Telekom', 1),
+ (5, 1516, now(), '%s@t-mobile-sms.de', 'Telekom', 1),
+ (6, 1517, now(), '%s@t-mobile-sms.de', 'Telekom', 1),
+ (7, 160, now(), '%s@t-mobile-sms.de', 'Telekom', 1),
+ (8, 170, now(), '%s@t-mobile-sms.de', 'Telekom', 1),
+ (9, 171, now(), '%s@t-mobile-sms.de', 'Telekom', 1),
+ (10, 175, now(), '%s@t-mobile-sms.de', 'Telekom', 1),
+ (11, 1520, now(), '%s@vodafone-sms.de', 'Vodafone', 1),
+ (12, 1522, now(), '%s@vodafone-sms.de', 'Vodafone', 1),
+ (13, 1523, now(), '%s@vodafone-sms.de', 'Vodafone', 1),
+ (14, 1525, now(), '%s@vodafone-sms.de', 'Vodafone', 1),
+ (15, 162, now(), '%s@vodafone-sms.de', 'Vodafone', 1),
+ (16, 172, now(), '%s@vodafone-sms.de', 'Vodafone', 1),
+ (17, 173, now(), '%s@vodafone-sms.de', 'Vodafone', 1),
+ (18, 174, now(), '%s@vodafone-sms.de', 'Vodafone', 1),
+ (19, 1570, now(), '%s@smsmail.eplus.de', 'E-Plus', 1),
+ (20, 1573, now(), '%s@smsmail.eplus.de', 'E-Plus', 1),
+ (21, 1575, now(), '%s@smsmail.eplus.de', 'E-Plus', 1),
+ (22, 1577, now(), '%s@smsmail.eplus.de', 'E-Plus', 1),
+ (23, 1578, now(), '%s@smsmail.eplus.de', 'E-Plus', 1),
+ (24, 163, now(), '%s@smsmail.eplus.de', 'E-Plus', 1),
+ (25, 177, now(), '%s@smsmail.eplus.de', 'E-Plus', 1),
+ (26, 178, now(), '%s@smsmail.eplus.de', 'E-Plus', 1),
+ (27, 1590, now(), '%s@unknown.invalid', 'O2', 1),
+ (28, 176, now(), '%s@unknown.invalid', 'O2', 1),
+ (29, 179, now(), '%s@unknown.invalid', 'O2', 1);
+
+-- Exportiere Daten aus Tabelle jfinancials.company_basic_data: ~0 rows (ungefähr)
+
+-- Exportiere Daten aus Tabelle jfinancials.company_branch_offices: ~0 rows (ungefähr)
+
+-- Exportiere Daten aus Tabelle jfinancials.company_contacts: ~0 rows (ungefähr)
+
+-- Exportiere Daten aus Tabelle jfinancials.company_departments: ~0 rows (ungefähr)
+
+-- Exportiere Daten aus Tabelle jfinancials.company_employees: ~0 rows (ungefähr)
+
+-- Exportiere Daten aus Tabelle jfinancials.company_headquarters: ~0 rows (ungefähr)
+
+-- Exportiere Daten aus Tabelle jfinancials.company_job_positions: ~0 rows (ungefähr)
+
+-- Exportiere Daten aus Tabelle jfinancials.company_logos: ~0 rows (ungefähr)
+
+-- Exportiere Daten aus Tabelle jfinancials.company_opening_times: ~0 rows (ungefähr)
+
+-- Exportiere Daten aus Tabelle jfinancials.country_data: ~0 rows (ungefähr)
+INSERT INTO `country_data` (`country_id`, `country_abroad_dial_prefix`, `country_code`, `country_entry_created`, `country_external_dial_prefix`, `country_i18n_key`, `country_is_local_prefix_required`, `country_phone_code`) VALUES
+ (1, '00', 'DE', '2016-04-19 10:08:14', '0', 'COUNTRY_GERMANY', 1, 49);
+
+-- Exportiere Daten aus Tabelle jfinancials.email_changes: ~0 rows (ungefähr)
+
+-- Exportiere Daten aus Tabelle jfinancials.fax_numbers: ~0 rows (ungefähr)
+
+-- Exportiere Daten aus Tabelle jfinancials.phone_numbers: ~1 rows (ungefähr)
+
+-- Exportiere Daten aus Tabelle jfinancials.users: ~1 rows (ungefähr)
+
+SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS);