]> git.mxchange.org Git - jfinancials-war.git/commitdiff
added contact EJB
authorRoland Haeder <roland@mxchange.org>
Tue, 10 May 2016 19:00:10 +0000 (21:00 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 10 May 2016 19:00:10 +0000 (21:00 +0200)
src/java/org/mxchange/addressbook/beans/user/AddressbookUserWebSessionBean.java

index 405d133a3ab02f459cb6cf7415d70a1300de6dfc..411f08234ab07bc68bcbb722fbfca12a95b430d7 100644 (file)
@@ -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);