From: Roland Haeder Date: Mon, 12 Oct 2015 14:23:51 +0000 (+0200) Subject: It should be a local bean X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f80c0d993a027133348a11dc76ad03f38d23819b;p=jfinancials-war.git It should be a local bean --- 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);