From: Roland Häder Date: Thu, 27 Jul 2017 20:33:40 +0000 (+0200) Subject: Fixed JNDI name X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2f40a7ed98952874b610c0c44bbff3e4e88b311c;p=addressbook-war.git Fixed JNDI name Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/addressbook/beans/businesscontact/AddressbookBusinessContactWebSessionBean.java b/src/java/org/mxchange/addressbook/beans/businesscontact/AddressbookBusinessContactWebSessionBean.java index a5f0fc95..975e485e 100644 --- a/src/java/org/mxchange/addressbook/beans/businesscontact/AddressbookBusinessContactWebSessionBean.java +++ b/src/java/org/mxchange/addressbook/beans/businesscontact/AddressbookBusinessContactWebSessionBean.java @@ -303,7 +303,7 @@ public class AddressbookBusinessContactWebSessionBean extends BaseAddressbookCon Context context = new InitialContext(); // Try to lookup - this.businessDataBean = (BusinessDataSessionBeanRemote) context.lookup("java:global/addressbook-ejb/businessContact!org.mxchange.jcontactsbusiness.BusinessContactSessionBeanRemote"); //NOI18N + this.businessDataBean = (BusinessDataSessionBeanRemote) context.lookup("java:global/addressbook-ejb/businessData!org.mxchange.jcontactsbusiness.BusinessDataSessionBeanRemote"); //NOI18N } catch (final NamingException e) { // Throw again throw new FaceletException(e); diff --git a/src/java/org/mxchange/addressbook/converter/businesscontact/AddressbookBusinessContactConverter.java b/src/java/org/mxchange/addressbook/converter/businesscontact/AddressbookBusinessContactConverter.java index 375279a8..24cc4cbd 100644 --- a/src/java/org/mxchange/addressbook/converter/businesscontact/AddressbookBusinessContactConverter.java +++ b/src/java/org/mxchange/addressbook/converter/businesscontact/AddressbookBusinessContactConverter.java @@ -69,7 +69,7 @@ public class AddressbookBusinessContactConverter implements Converter { Context initialContext = new InitialContext(); // ... and user controller - AddressbookBusinessContactConverter.BUSINESS_CONTACT_BEAN = (BusinessDataSessionBeanRemote) initialContext.lookup("java:global/addressbook-ejb/businessContact!org.mxchange.jcontactsbusiness.BusinessContactSessionBeanRemote"); //NOI18N + AddressbookBusinessContactConverter.BUSINESS_CONTACT_BEAN = (BusinessDataSessionBeanRemote) initialContext.lookup("java:global/addressbook-ejb/businessData!org.mxchange.jcontactsbusiness.BusinessDataSessionBeanRemote"); //NOI18N } catch (final NamingException ex) { // Continue to throw it throw new ConverterException(MessageFormat.format("initialContext.lookup() failed: {0}", ex.getMessage()), ex); //NOI18N