]> git.mxchange.org Git - jjobs-war.git/commitdiff
Continued:
authorRoland Haeder <roland@mxchange.org>
Fri, 11 Mar 2016 21:03:06 +0000 (22:03 +0100)
committerRoland Haeder <roland@mxchange.org>
Fri, 11 Mar 2016 22:12:00 +0000 (23:12 +0100)
- new email EJB used
- updated jar(s)

lib/juser-core.jar
lib/juser-lib.jar
src/java/org/mxchange/jjobs/beans/user/UserWebSessionBean.java

index 22b1352719e70921cb178edbaf2f44438454ab4e..7dad4a093ec73a3f597125d3068b39e293fae567 100644 (file)
Binary files a/lib/juser-core.jar and b/lib/juser-core.jar differ
index 985516ffe2939cd31bb9248be244e20ccb985be7..f637271c38803627467b683fb564c07db7c11532 100644 (file)
Binary files a/lib/juser-lib.jar and b/lib/juser-lib.jar differ
index 2e777b67e6e00715ef29c4ec980cd9b8ff5aa587..3656a577f127f3735e66a44b276b2fccdd9bd303 100644 (file)
@@ -48,6 +48,7 @@ import org.mxchange.jusercore.events.login.UserLoggedInEvent;
 import org.mxchange.jusercore.events.registration.UserRegisteredEvent;
 import org.mxchange.jusercore.exceptions.UserNotFoundException;
 import org.mxchange.jusercore.exceptions.UserPasswordMismatchException;
+import org.mxchange.jusercore.model.email_address.EmailChangeSessionBeanRemote;
 import org.mxchange.jusercore.model.user.LoginUser;
 import org.mxchange.jusercore.model.user.User;
 import org.mxchange.jusercore.model.user.UserSessionBeanRemote;
@@ -188,6 +189,11 @@ public class UserWebSessionBean implements UserWebSessionController {
         */
        private final UserSessionBeanRemote userBean;
 
+       /**
+        * Remote email change bean
+        */
+       private final EmailChangeSessionBeanRemote emailBean;
+
        /**
         * User id
         */
@@ -242,6 +248,9 @@ public class UserWebSessionBean implements UserWebSessionController {
 
                        // Try to lookup
                        this.userBean = (UserSessionBeanRemote) context.lookup("ejb/stateless-jjobs-user"); //NOI18N
+
+                       // Try to lookup
+                       this.emailBean = (EmailChangeSessionBeanRemote) context.lookup("ejb/stateless-jjobs-email-change"); //NOI18N
                } catch (final NamingException e) {
                        // Throw again
                        throw new FaceletException(e);
@@ -353,7 +362,7 @@ public class UserWebSessionBean implements UserWebSessionController {
                user.getUserContact().setContactEmailAddress(this.getEmailAddress1());
 
                // Call EJB
-               this.userBean.enqueueEmailAddressForChange(user);
+               this.emailBean.enqueueEmailAddressForChange(user);
 
                // All fine
                return "login_data_saved"; //NOI18N