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

index 2ef50fea49574a9cb8b9915913eb0925e02ff0c2..ff6e0d8aa2b2e41f74b78c3ce34b1b9c1d316176 100644 (file)
Binary files a/lib/jphone-lib.jar and b/lib/jphone-lib.jar differ
index 07beaba046ba9c004892373fac4b8a2f52976055..5a45722f65f8c72d02911417c5a6eaa6aae5bd9c 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 JobsAdminMobileProviderWebRequestBean implements JobsAdminMobilePro
        /**
         * Remote EJB for mobile providers (administrative)
         */
-       private AdminMobileProviderSingletonBeanRemote adminRemoteBean;
+       private AdminMobileProviderSessionBeanRemote adminRemoteBean;
 
        /**
         * Regular bean
@@ -98,7 +98,7 @@ public class JobsAdminMobileProviderWebRequestBean implements JobsAdminMobilePro
                        Context context = new InitialContext();
 
                        // Try to lookup the beans
-                       this.adminRemoteBean = (AdminMobileProviderSingletonBeanRemote) context.lookup("java:global/jjobs-ejb/adminmobileprovider!org.mxchange.jphone.phonenumbers.mobileprovider.AdminMobileProviderSingletonBeanRemote"); //NOI18N
+                       this.adminRemoteBean = (AdminMobileProviderSessionBeanRemote) context.lookup("java:global/jjobs-ejb/adminmobileprovider!org.mxchange.jphone.phonenumbers.mobileprovider.AdminMobileProviderSessionBeanRemote"); //NOI18N
                } catch (final NamingException e) {
                        // Throw it again
                        throw new FaceletException(e);