From 54b06252c57dee50394e142fab8ba3161c4f6c38 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 10 May 2016 21:00:10 +0200 Subject: [PATCH] added contact EJB --- .../beans/user/AddressbookUserWebSessionBean.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/java/org/mxchange/addressbook/beans/user/AddressbookUserWebSessionBean.java b/src/java/org/mxchange/addressbook/beans/user/AddressbookUserWebSessionBean.java index 405d133a..411f0823 100644 --- a/src/java/org/mxchange/addressbook/beans/user/AddressbookUserWebSessionBean.java +++ b/src/java/org/mxchange/addressbook/beans/user/AddressbookUserWebSessionBean.java @@ -35,6 +35,7 @@ import javax.naming.NamingException; import org.mxchange.addressbook.beans.contact.AddressbookContactWebSessionController; import org.mxchange.addressbook.beans.login.AddressbookUserLoginWebSessionController; import org.mxchange.jcontacts.contact.Contact; +import org.mxchange.jcontacts.contact.ContactSessionBeanRemote; import org.mxchange.jcontacts.events.contact.add.AdminAddedContactEvent; import org.mxchange.jusercore.events.login.UserLoggedInEvent; import org.mxchange.jusercore.events.registration.UserRegisteredEvent; @@ -63,6 +64,11 @@ public class AddressbookUserWebSessionBean implements AddressbookUserWebSessionC */ private static final long serialVersionUID = 542_145_347_916L; + /** + * Contact EJB + */ + private ContactSessionBeanRemote contactBean; + /** * General contact controller */ @@ -149,6 +155,9 @@ public class AddressbookUserWebSessionBean implements AddressbookUserWebSessionC // Try to lookup this.userBean = (UserSessionBeanRemote) context.lookup("java:global/addressbook-ejb/user!org.mxchange.jusercore.model.user.UserSessionBeanRemote"); //NOI18N + + // Try to lookup + this.contactBean = (ContactSessionBeanRemote) context.lookup("java:global/jratecalc-ejb/contact!org.mxchange.jcontacts.contact.ContactSessionBeanRemote"); //NOI18N } catch (final NamingException e) { // Throw again throw new FaceletException(e); -- 2.39.5