From: Roland Häder Date: Wed, 3 Aug 2016 09:06:25 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=337271807e5770da8ebe2bb94c5d504ab07584e5;p=pizzaservice-war.git Please cherry-pick: - renamed + sorted field as it is only for user logins Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/pizzaapplication/beans/login/PizzaUserLoginWebSessionBean.java b/src/java/org/mxchange/pizzaapplication/beans/login/PizzaUserLoginWebSessionBean.java index fccf1755..f7808de5 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/login/PizzaUserLoginWebSessionBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/login/PizzaUserLoginWebSessionBean.java @@ -89,18 +89,6 @@ public class PizzaUserLoginWebSessionBean extends BasePizzaController implements */ private User loggedInUser; - /** - * EJB for user-login - */ - private UserLoginSessionBeanRemote loginBean; - - /** - * Event fired when user has logged in - */ - @Inject - @Any - private Event loginEvent; - /** * User controller */ @@ -112,6 +100,11 @@ public class PizzaUserLoginWebSessionBean extends BasePizzaController implements */ private boolean userLoggedIn; + /** + * EJB for user-login + */ + private UserLoginSessionBeanRemote userLoginBean; + /** * Event fired when user has logged in */ @@ -145,7 +138,7 @@ public class PizzaUserLoginWebSessionBean extends BasePizzaController implements Context context = new InitialContext(); // Try to lookup - this.loginBean = (UserLoginSessionBeanRemote) context.lookup("java:global/pizzaservice-ejb/login!org.mxchange.jusercore.model.login.UserLoginSessionBeanRemote"); //NOI18N + this.userLoginBean = (UserLoginSessionBeanRemote) context.lookup("java:global/pizzaservice-ejb/login!org.mxchange.jusercore.model.login.UserLoginSessionBeanRemote"); //NOI18N // Also find this this.userPasswordHistoryBean = (UserPasswordHistorySessionBeanRemote) context.lookup(""); //NOI18N @@ -186,7 +179,7 @@ public class PizzaUserLoginWebSessionBean extends BasePizzaController implements 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);