From: Roland Haeder Date: Thu, 13 Apr 2017 11:51:28 +0000 (+0200) Subject: this project was based on addressbook project X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=07e5ae71b675c38b1b02169067aed94c475a755d;p=jfinancials.git this project was based on addressbook project Signed-off-by: Roland Häder --- diff --git a/INSTALL.txt b/INSTALL.txt index 8b27992..88347c3 100644 --- a/INSTALL.txt +++ b/INSTALL.txt @@ -7,7 +7,7 @@ Installation instructions: 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 @@ -18,8 +18,8 @@ password: your_password 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 @@ -31,18 +31,18 @@ Pool name: AddressbookPool 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: Default user: Default sender address: noreply@your-domain.example diff --git a/build.xml b/build.xml index d26bf60..a3b1dc3 100644 --- a/build.xml +++ b/build.xml @@ -7,8 +7,8 @@ - - Builds, tests, and runs the project addressbook. + + Builds, tests, and runs the project jfinancials. - + @@ -201,11 +201,11 @@ is divided into following sections: - + - + @@ -226,8 +226,8 @@ is divided into following sections: - - + + @@ -304,8 +304,8 @@ is divided into following sections: - - + + @@ -413,17 +413,17 @@ is divided into following sections: - + - + - + - - + + - - + + @@ -631,11 +631,11 @@ is divided into following sections: - + - + diff --git a/nbproject/project.properties b/nbproject/project.properties index 8bc2a35..e2c8979 100644 --- a/nbproject/project.properties +++ b/nbproject/project.properties @@ -21,8 +21,8 @@ j2ee.server.type=gfv3ee6 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 @@ -30,9 +30,9 @@ javac.target=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= diff --git a/nbproject/project.xml b/nbproject/project.xml index 4789946..14d2463 100644 --- a/nbproject/project.xml +++ b/nbproject/project.xml @@ -3,7 +3,7 @@ org.netbeans.modules.j2ee.earproject - addressbook + jfinancials 1.6.5 @@ -12,14 +12,14 @@ / - ${reference.addressbook-ejb.dist-ear} + ${reference.jfinancials-ejb.dist-ear} / - addressbook-ejb + jfinancials-ejb j2ee_ear_archive dist-ear diff --git a/test_data/addressbook.sql b/test_data/addressbook.sql deleted file mode 100644 index 9324b5d..0000000 --- a/test_data/addressbook.sql +++ /dev/null @@ -1,67 +0,0 @@ -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); diff --git a/test_data/jfinancials.sql b/test_data/jfinancials.sql new file mode 100644 index 0000000..390aa47 --- /dev/null +++ b/test_data/jfinancials.sql @@ -0,0 +1,67 @@ +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);