*/
private User loggedInUser;
- /**
- * EJB for user-login
- */
- private UserLoginSessionBeanRemote loginBean;
-
- /**
- * Event fired when user has logged in
- */
- @Inject
- @Any
- private Event<UserLoggedInEvent> loginEvent;
-
/**
* User controller
*/
*/
private boolean userLoggedIn;
+ /**
+ * EJB for user-login
+ */
+ private UserLoginSessionBeanRemote userLoginBean;
+
/**
* Event fired when user has logged in
*/
Context context = new InitialContext();
// Try to lookup
- this.loginBean = (UserLoginSessionBeanRemote) context.lookup("java:global/addressbook-ejb/login!org.mxchange.jusercore.model.login.UserLoginSessionBeanRemote"); //NOI18N
+ this.userLoginBean = (UserLoginSessionBeanRemote) context.lookup("java:global/addressbook-ejb/login!org.mxchange.jusercore.model.login.UserLoginSessionBeanRemote"); //NOI18N
// Also find this
this.userPasswordHistoryBean = (UserPasswordHistorySessionBeanRemote) context.lookup(""); //NOI18N
try {
// Call bean
- User confirmedUser = this.loginBean.validateUserAccountStatus(container);
+ User confirmedUser = this.userLoginBean.validateUserAccountStatus(container);
// All fine here so set it here
this.setLoggedInUser(confirmedUser);