From 337271807e5770da8ebe2bb94c5d504ab07584e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 3 Aug 2016 11:06:25 +0200 Subject: [PATCH] Please cherry-pick: - renamed + sorted field as it is only for user logins MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../login/PizzaUserLoginWebSessionBean.java | 21 +++++++------------ 1 file changed, 7 insertions(+), 14 deletions(-) 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); -- 2.39.5