From: Roland Haeder Date: Sun, 17 Apr 2016 14:29:22 +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=6617067254e13e44e3b3015f8ade0a8072108af5;p=jfinancials-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/addressbook/beans/mobileprovider/AddressbookAdminMobileProviderWebRequestBean.java b/src/java/org/mxchange/addressbook/beans/mobileprovider/AddressbookAdminMobileProviderWebRequestBean.java index e3a30785..954828dd 100644 --- a/src/java/org/mxchange/addressbook/beans/mobileprovider/AddressbookAdminMobileProviderWebRequestBean.java +++ b/src/java/org/mxchange/addressbook/beans/mobileprovider/AddressbookAdminMobileProviderWebRequestBean.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 AddressbookAdminMobileProviderWebRequestBean implements Addressbook /** * Remote EJB for mobile providers (administrative) */ - private AdminMobileProviderSingletonBeanRemote adminRemoteBean; + private AdminMobileProviderSessionBeanRemote adminRemoteBean; /** * Regular bean @@ -98,7 +98,7 @@ public class AddressbookAdminMobileProviderWebRequestBean implements Addressbook Context context = new InitialContext(); // Try to lookup the beans - this.adminRemoteBean = (AdminMobileProviderSingletonBeanRemote) context.lookup("java:global/addressbook-ejb/adminmobileprovider!org.mxchange.jphone.phonenumbers.mobileprovider.AdminMobileProviderSingletonBeanRemote"); //NOI18N + this.adminRemoteBean = (AdminMobileProviderSessionBeanRemote) context.lookup("java:global/addressbook-ejb/adminmobileprovider!org.mxchange.jphone.phonenumbers.mobileprovider.AdminMobileProviderSessionBeanRemote"); //NOI18N } catch (final NamingException e) { // Throw it again throw new FaceletException(e);