]> git.mxchange.org Git - jjobs-ejb.git/commitdiff
Rewrite continued:
authorRoland Häder <roland@mxchange.org>
Mon, 26 Jun 2017 21:43:26 +0000 (23:43 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 26 Jun 2017 21:43:26 +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/jmailee/model/delivery/JobsEmailDeliveryMessageBean.java
src/java/org/mxchange/jusercore/model/login/JobsUserLoginSessionBean.java
src/java/org/mxchange/jusercore/model/user/activity/JobsUserActivitySessionBean.java

index a032ca06f0883a50b045e3792b7dfa2963a2ea8c..d4f498ecc33975f8041f5ca0294f9810116e496c 100644 (file)
@@ -67,7 +67,7 @@ public class JobsEmailDeliveryMessageBean extends BaseJobsDatabaseBean implement
         */
        public JobsEmailDeliveryMessageBean () {
                // Call super constructor
-               super();
+               super("jms/jjobs-queue-factory", "jms/jjobs-email-queue"); //NOI18N
 
                // Init mailer instance
                this.mailer = new JobsMailer();
index 1b167b538a659f0e2bdc91ef7e1949e1b2edbe56..bd6fc5e9a75d923b758ea9f5dae77fb4631f6d52 100644 (file)
@@ -16,7 +16,6 @@
  */
 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;
@@ -26,10 +25,11 @@ 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;
 
 /**
index c73f81e6ec7c6c397d3ee42d3158f313d2f50021..063b8d9b47de772e88eeea1e0a923483eb588756 100644 (file)
@@ -24,7 +24,7 @@ import javax.ejb.Stateless;
 import javax.jms.JMSException;
 import javax.jms.ObjectMessage;
 import javax.persistence.Query;
-import org.mxchange.jcoreee.database.BaseDatabaseBean;
+import org.mxchange.jjobs.database.BaseJobsDatabaseBean;
 import org.mxchange.jusercore.model.user.User;
 
 /**
@@ -35,7 +35,7 @@ import org.mxchange.jusercore.model.user.User;
  * @author Roland Häder<roland@mxchange.org>
  */
 @Stateless (name = "userActivity", description = "A bean handling the user data")
-public class JobsUserActivitySessionBean extends BaseDatabaseBean implements UserActivityLogSessionBeanRemote {
+public class JobsUserActivitySessionBean extends BaseJobsDatabaseBean implements UserActivityLogSessionBeanRemote {
 
        /**
         * Serial number
@@ -149,7 +149,7 @@ public class JobsUserActivitySessionBean extends BaseDatabaseBean implements Use
        @SuppressWarnings ("unchecked")
        public List<LogableUserActivity> fetchAllUsersActivityLogByMultipleType (final User user, final String[] activityTypes) {
                // Trace message
-               this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.fetchAllUsersActivityLogByType: user={1},activityTypes={2} - CALLED!", this.getClass().getSimpleName(), user, activityTypes)); //NOI18N
+               this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.fetchAllUsersActivityLogByType: user={1},activityTypes={2} - CALLED!", this.getClass().getSimpleName(), user, Arrays.toString(activityTypes))); //NOI18N
 
                // Is user valid?
                if (null == user) {
@@ -226,5 +226,4 @@ public class JobsUserActivitySessionBean extends BaseDatabaseBean implements Use
                // Return it
                return list;
        }
-
 }