]> git.mxchange.org Git - addressbook-war.git/commitdiff
This bean cannot be singleton as more than one admin may be logged in. It should...
authorRoland Haeder <roland@mxchange.org>
Sun, 17 Apr 2016 14:29:22 +0000 (16:29 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 17 Apr 2016 14:29:22 +0000 (16:29 +0200)
lib/jphone-lib.jar
src/java/org/mxchange/addressbook/beans/mobileprovider/AddressbookAdminMobileProviderWebRequestBean.java

index 2ef50fea49574a9cb8b9915913eb0925e02ff0c2..ff6e0d8aa2b2e41f74b78c3ce34b1b9c1d316176 100644 (file)
Binary files a/lib/jphone-lib.jar and b/lib/jphone-lib.jar differ
index e3a3078570faa37108a7651c068eaa15085a8a1d..954828dd47fad24f7790d35610dc97e47bd80fc7 100644 (file)
@@ -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);