]> git.mxchange.org Git - pizzaservice-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:27:34 +0000 (16:27 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 17 Apr 2016 14:27:34 +0000 (16:27 +0200)
lib/jphone-lib.jar
src/java/org/mxchange/pizzaapplication/beans/mobileprovider/PizzaAdminMobileProviderWebRequestBean.java

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