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;
*/
private final UserSessionBeanRemote userBean;
+ /**
+ * Remote email change bean
+ */
+ private final EmailChangeSessionBeanRemote emailBean;
+
/**
* User id
*/
// 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);
user.getUserContact().setContactEmailAddress(this.getEmailAddress1());
// Call EJB
- this.userBean.enqueueEmailAddressForChange(user);
+ this.emailBean.enqueueEmailAddressForChange(user);
// All fine
return "login_data_saved"; //NOI18N