- 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>
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
*/
@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
*/
public FinancialsEmailDeliveryMessageBean () {
// Call super constructor
- super();
+ super("jms/jfinancials-queue-factory", "jms/jfinancials-email-queue"); //NOI18N
// Init mailer instance
this.mailer = new FinancialsMailer();
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;
/**
* @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
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
*/
@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
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;
* @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
*/
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;
/**
* @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