]> git.mxchange.org Git - jjobs-war.git/blobdiff - src/java/org/mxchange/jjobs/beans/smsprovider/JobsSmsProviderWebApplicationBean.java
Continued a bit:
[jjobs-war.git] / src / java / org / mxchange / jjobs / beans / smsprovider / JobsSmsProviderWebApplicationBean.java
index e43b28f426d0d037449aa77be215f7ec28c0a5ed..f8feebaea1f7a341475257623d532d02f6a3678b 100644 (file)
@@ -25,7 +25,7 @@ import javax.inject.Named;
 import javax.naming.Context;
 import javax.naming.InitialContext;
 import javax.naming.NamingException;
-import org.mxchange.jphone.phonenumbers.smsprovider.AddressbookSmsProviderSingletonBeanRemote;
+import org.mxchange.jphone.phonenumbers.smsprovider.JobsSmsProviderSingletonBeanRemote;
 import org.mxchange.jphone.phonenumbers.smsprovider.SmsProvider;
 
 /**
@@ -45,7 +45,7 @@ public class JobsSmsProviderWebApplicationBean implements JobsSmsProviderWebAppl
        /**
         * Remote country EJB
         */
-       private AddressbookSmsProviderSingletonBeanRemote cellphoneBean;
+       private JobsSmsProviderSingletonBeanRemote cellphoneBean;
 
        /**
         * List of all countries
@@ -62,7 +62,7 @@ public class JobsSmsProviderWebApplicationBean implements JobsSmsProviderWebAppl
                        Context context = new InitialContext();
 
                        // Try to lookup the bean
-                       this.cellphoneBean = (AddressbookSmsProviderSingletonBeanRemote) context.lookup("ejb/jjobs-singleton-smsprovider"); //NOI18N
+                       this.cellphoneBean = (JobsSmsProviderSingletonBeanRemote) context.lookup("java:global/jjobs-ejb/smsprovider!org.mxchange.jphone.phonenumbers.smsprovider.JobsSmsProviderSingletonBeanRemote"); //NOI18N
                } catch (final NamingException ex) {
                        // Continue to throw
                        throw new FaceletException(ex);