From: Roland Haeder Date: Sun, 17 Apr 2016 14:27:34 +0000 (+0200) Subject: This bean cannot be singleton as more than one admin may be logged in. It should... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=15cb3ac362ff16597d45bba9d39f3a193e917b69;p=pizzaservice-war.git This bean cannot be singleton as more than one admin may be logged in. It should also be initialized normally. --- diff --git a/lib/jphone-lib.jar b/lib/jphone-lib.jar index 2ef50fea..ff6e0d8a 100644 Binary files a/lib/jphone-lib.jar and b/lib/jphone-lib.jar differ diff --git a/src/java/org/mxchange/pizzaapplication/beans/mobileprovider/PizzaAdminMobileProviderWebRequestBean.java b/src/java/org/mxchange/pizzaapplication/beans/mobileprovider/PizzaAdminMobileProviderWebRequestBean.java index 5a99dd21..7bbefcea 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/mobileprovider/PizzaAdminMobileProviderWebRequestBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/mobileprovider/PizzaAdminMobileProviderWebRequestBean.java @@ -32,7 +32,7 @@ import org.mxchange.jcountry.data.Country; import org.mxchange.jphone.events.AdminAddedMobileProviderEvent; import org.mxchange.jphone.events.AdminMobileProviderAddedEvent; import org.mxchange.jphone.exceptions.MobileProviderAlreadyAddedException; -import org.mxchange.jphone.phonenumbers.mobileprovider.AdminMobileProviderSingletonBeanRemote; +import org.mxchange.jphone.phonenumbers.mobileprovider.AdminMobileProviderSessionBeanRemote; import org.mxchange.jphone.phonenumbers.mobileprovider.CellphoneProvider; import org.mxchange.jphone.phonenumbers.mobileprovider.MobileProvider; @@ -53,7 +53,7 @@ public class PizzaAdminMobileProviderWebRequestBean implements PizzaAdminMobileP /** * Remote EJB for mobile providers (administrative) */ - private AdminMobileProviderSingletonBeanRemote adminRemoteBean; + private AdminMobileProviderSessionBeanRemote adminRemoteBean; /** * Regular bean @@ -98,7 +98,7 @@ public class PizzaAdminMobileProviderWebRequestBean implements PizzaAdminMobileP Context context = new InitialContext(); // Try to lookup the beans - this.adminRemoteBean = (AdminMobileProviderSingletonBeanRemote) context.lookup("java:global/PizzaService-ejb/adminmobileprovider!org.mxchange.jphone.phonenumbers.mobileprovider.AdminMobileProviderSingletonBeanRemote"); //NOI18N + this.adminRemoteBean = (AdminMobileProviderSessionBeanRemote) context.lookup("java:global/PizzaService-ejb/adminmobileprovider!org.mxchange.jphone.phonenumbers.mobileprovider.AdminMobileProviderSessionBeanRemote"); //NOI18N } catch (final NamingException e) { // Throw it again throw new FaceletException(e);