]> git.mxchange.org Git - addressbook-war.git/commitdiff
It should be a local bean
authorRoland Haeder <roland@mxchange.org>
Mon, 12 Oct 2015 14:23:51 +0000 (16:23 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 12 Oct 2015 14:23:51 +0000 (16:23 +0200)
src/java/org/mxchange/addressbook/beans/country/CountryWebBean.java

index b6b171ff99d4049e24f3fbddb381ea8e88a8464f..553876263a5c57042f9dc73c0049d47be6b9003f 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.jcountry.data.AddressbookCountrySingletonBeanRemote;
+import org.mxchange.jcountry.data.AddressbookCountrySingletonBeanLocal;
 import org.mxchange.jcountry.data.Country;
 
 /**
@@ -45,7 +45,7 @@ public class CountryWebBean implements CountryWebController {
        /**
         * Remote country EJB
         */
-       private final AddressbookCountrySingletonBeanRemote countryBean;
+       private final AddressbookCountrySingletonBeanLocal countryBean;
 
        /**
         * List of all countries
@@ -62,7 +62,7 @@ public class CountryWebBean implements CountryWebController {
                        Context context = new InitialContext();
 
                        // Try to lookup the bean
-                       this.countryBean = (AddressbookCountrySingletonBeanRemote) context.lookup("ejb/addressbook-singleton-country"); //NOI18N
+                       this.countryBean = (AddressbookCountrySingletonBeanLocal) context.lookup("ejb/addressbook-singleton-country"); //NOI18N
                } catch (final NamingException ex) {
                        // Continue to throw
                        throw new FaceletException(ex);