]> git.mxchange.org Git - jfinancials-ejb.git/commitdiff
Rewrite continued:
authorRoland Häder <roland@mxchange.org>
Mon, 26 Jun 2017 21:43:28 +0000 (23:43 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 26 Jun 2017 21:43:28 +0000 (23:43 +0200)
- Now all project-specific abstract web beans (controllers) inherit from BaseFacesBean to have these nice showFacesMessage() methods.
- Also all project-specific abstract EJBs inherit now only BaseDataBean (one was missing in an old project)
- So, if you have a WAR project, inherit from BaseFacesBean, if you have an EJB project, inherit from BaseDatabaseBean

Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jcountry/data/FinancialsCountrySingletonBean.java
src/java/org/mxchange/jfinancials/mailer/model/delivery/FinancialsEmailDeliveryMessageBean.java
src/java/org/mxchange/jphone/phonenumbers/mobileprovider/FinancialsAdminMobileProviderSessionBean.java
src/java/org/mxchange/jphone/phonenumbers/mobileprovider/FinancialsMobileProviderSingletonBean.java
src/java/org/mxchange/jphone/phonenumbers/phone/FinancialsPhoneSessionBean.java
src/java/org/mxchange/jusercore/model/login/FinancialsUserLoginSessionBean.java

index f18462ad617654c85b346eba5154b4732ae5be02..71f09aaf6d476d249b10597e7a927396082c16f0 100644 (file)
@@ -23,8 +23,8 @@ import javax.ejb.Singleton;
 import javax.ejb.Startup;
 import javax.persistence.NoResultException;
 import javax.persistence.Query;
-import org.mxchange.jcoreee.database.BaseDatabaseBean;
 import org.mxchange.jcountry.exceptions.CountryAlreadyAddedException;
+import org.mxchange.jfinancials.database.BaseFinancialsDatabaseBean;
 
 /**
  * A singleton EJB for country informations
@@ -33,7 +33,7 @@ import org.mxchange.jcountry.exceptions.CountryAlreadyAddedException;
  */
 @Startup
 @Singleton (name = "country", description = "A singleton session-scoped bean for country informations")
-public class FinancialsCountrySingletonBean extends BaseDatabaseBean implements CountrySingletonBeanRemote {
+public class FinancialsCountrySingletonBean extends BaseFinancialsDatabaseBean implements CountrySingletonBeanRemote {
 
        /**
         * Serial number
index 12913dbf81c8f50db49b13f160be0e9718ac8751..51f5ba38a20938db29a334727340d8a5d0d8b9ba 100644 (file)
@@ -65,7 +65,7 @@ public class FinancialsEmailDeliveryMessageBean extends BaseFinancialsDatabaseBe
         */
        public FinancialsEmailDeliveryMessageBean () {
                // Call super constructor
-               super();
+               super("jms/jfinancials-queue-factory", "jms/jfinancials-email-queue"); //NOI18N
 
                // Init mailer instance
                this.mailer = new FinancialsMailer();
index 3e93d0a0470935710bfde29fdad07f944228d183..4263b6871bad43371faf77b53084aa29e6230b21 100644 (file)
@@ -19,7 +19,7 @@ package org.mxchange.jphone.phonenumbers.mobileprovider;
 import java.text.MessageFormat;
 import java.util.GregorianCalendar;
 import javax.ejb.Stateless;
-import org.mxchange.jcoreee.database.BaseDatabaseBean;
+import org.mxchange.jfinancials.database.BaseFinancialsDatabaseBean;
 import org.mxchange.jphone.exceptions.MobileProviderAlreadyAddedException;
 
 /**
@@ -28,7 +28,7 @@ import org.mxchange.jphone.exceptions.MobileProviderAlreadyAddedException;
  * @author Roland Häder<roland@mxchange.org>
  */
 @Stateless (name = "adminMobileProvider", description = "A singleton session-scoped bean for mobile provider informations, admin-edition")
-public class FinancialsAdminMobileProviderSessionBean extends BaseDatabaseBean implements AdminMobileProviderSessionBeanRemote {
+public class FinancialsAdminMobileProviderSessionBean extends BaseFinancialsDatabaseBean implements AdminMobileProviderSessionBeanRemote {
 
        /**
         * Serial number
index 14277fd3a10f1b053c6a43496c78928992ffa34f..7b016a147ec0e1fc496d9063d4e8bbf87749eb25 100644 (file)
@@ -21,7 +21,7 @@ import java.util.List;
 import javax.ejb.Singleton;
 import javax.ejb.Startup;
 import javax.persistence.Query;
-import org.mxchange.jcoreee.database.BaseDatabaseBean;
+import org.mxchange.jfinancials.database.BaseFinancialsDatabaseBean;
 
 /**
  * A singleton EJB for mobile provider informations
@@ -30,7 +30,7 @@ import org.mxchange.jcoreee.database.BaseDatabaseBean;
  */
 @Startup
 @Singleton (name = "mobileprovider", description = "A singleton session-scoped bean for SMS provider informations")
-public class FinancialsMobileProviderSingletonBean extends BaseDatabaseBean implements MobileProviderSingletonBeanRemote {
+public class FinancialsMobileProviderSingletonBean extends BaseFinancialsDatabaseBean implements MobileProviderSingletonBeanRemote {
 
        /**
         * Serial number
index 2d695d96ff60daad6d6683b7eb8bb8a5bb123257..c0258e904cc51d8604315fff54cccd23db5fe5da 100644 (file)
@@ -21,7 +21,7 @@ import java.util.List;
 import javax.ejb.Stateless;
 import javax.persistence.NoResultException;
 import javax.persistence.Query;
-import org.mxchange.jcoreee.database.BaseDatabaseBean;
+import org.mxchange.jfinancials.database.BaseFinancialsDatabaseBean;
 import org.mxchange.jphone.exceptions.PhoneEntityNotFoundException;
 import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
 import org.mxchange.jphone.phonenumbers.fax.FaxNumber;
@@ -36,7 +36,7 @@ import org.mxchange.jphone.phonenumbers.mobile.MobileNumber;
  * @author Roland Häder<roland@mxchange.org>
  */
 @Stateless (name = "phone", description = "A bean handling phone data")
-public class FinancialsPhoneSessionBean extends BaseDatabaseBean implements PhoneSessionBeanRemote {
+public class FinancialsPhoneSessionBean extends BaseFinancialsDatabaseBean implements PhoneSessionBeanRemote {
 
        /**
         * Serial number
index eb60af94d82132d68386d1ccbe958bcccdbc72af..a019857db8a72b2078660226fc76f9ec4ed31148 100644 (file)
  */
 package org.mxchange.jusercore.model.login;
 
-import org.mxchange.jusercore.model.login.user.UserLoginSessionBeanRemote;
 import java.text.MessageFormat;
 import javax.ejb.EJB;
 import javax.ejb.Stateless;
-import org.mxchange.jcoreee.database.BaseDatabaseBean;
+import org.mxchange.jfinancials.database.BaseFinancialsDatabaseBean;
 import org.mxchange.jusercore.container.login.LoginContainer;
 import org.mxchange.jusercore.exceptions.UserNotFoundException;
 import org.mxchange.jusercore.exceptions.UserPasswordMismatchException;
 import org.mxchange.jusercore.exceptions.UserStatusLockedException;
 import org.mxchange.jusercore.exceptions.UserStatusUnconfirmedException;
-import org.mxchange.jusercore.model.user.register.UserRegistrationSessionBeanRemote;
+import org.mxchange.jusercore.model.login.user.UserLoginSessionBeanRemote;
 import org.mxchange.jusercore.model.user.User;
 import org.mxchange.jusercore.model.user.UserSessionBeanRemote;
 import org.mxchange.jusercore.model.user.UserUtils;
+import org.mxchange.jusercore.model.user.register.UserRegistrationSessionBeanRemote;
 import org.mxchange.jusercore.model.user.status.UserAccountStatus;
 
 /**
@@ -38,7 +38,7 @@ import org.mxchange.jusercore.model.user.status.UserAccountStatus;
  * @author Roland Häder<roland@mxchange.org>
  */
 @Stateless (name = "login", description = "A bean handling the user login for Financials project")
-public class FinancialsUserLoginSessionBean extends BaseDatabaseBean implements UserLoginSessionBeanRemote {
+public class FinancialsUserLoginSessionBean extends BaseFinancialsDatabaseBean implements UserLoginSessionBeanRemote {
 
        /**
         * Serial number