From f80c0d993a027133348a11dc76ad03f38d23819b Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 12 Oct 2015 16:23:51 +0200 Subject: [PATCH] It should be a local bean --- .../mxchange/addressbook/beans/country/CountryWebBean.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java/org/mxchange/addressbook/beans/country/CountryWebBean.java b/src/java/org/mxchange/addressbook/beans/country/CountryWebBean.java index b6b171ff..55387626 100644 --- a/src/java/org/mxchange/addressbook/beans/country/CountryWebBean.java +++ b/src/java/org/mxchange/addressbook/beans/country/CountryWebBean.java @@ -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); -- 2.39.5