]> git.mxchange.org Git - jjobs-war.git/commitdiff
added contact EJB
authorRoland Haeder <roland@mxchange.org>
Tue, 10 May 2016 18:59:02 +0000 (20:59 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 10 May 2016 18:59:02 +0000 (20:59 +0200)
src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java

index 485fbe2575c6c11e3b503c7cc5d26622dded905e..00472ce38980ca8f8f69c84268d11bdde9f97e19 100644 (file)
@@ -33,6 +33,7 @@ import javax.naming.Context;
 import javax.naming.InitialContext;
 import javax.naming.NamingException;
 import org.mxchange.jcontacts.contact.Contact;
+import org.mxchange.jcontacts.contact.ContactSessionBeanRemote;
 import org.mxchange.jcontacts.events.contact.add.AdminAddedContactEvent;
 import org.mxchange.jjobs.beans.contact.JobsContactWebSessionController;
 import org.mxchange.jjobs.beans.login.JobsUserLoginWebSessionController;
@@ -63,6 +64,11 @@ public class JobsUserWebSessionBean implements JobsUserWebSessionController {
         */
        private static final long serialVersionUID = 542_145_347_916L;
 
+       /**
+        * Contact EJB
+        */
+       private ContactSessionBeanRemote contactBean;
+
        /**
         * General contact controller
         */
@@ -143,6 +149,9 @@ public class JobsUserWebSessionBean implements JobsUserWebSessionController {
 
                        // Try to lookup
                        this.userBean = (UserSessionBeanRemote) context.lookup("java:global/jjobs-ejb/user!org.mxchange.jusercore.model.user.UserSessionBeanRemote"); //NOI18N
+
+                       // Try to lookup
+                       this.contactBean = (ContactSessionBeanRemote) context.lookup("java:global/jjobs-ejb/contact!org.mxchange.jcontacts.contact.ContactSessionBeanRemote"); //NOI18N
                } catch (final NamingException e) {
                        // Throw again
                        throw new FaceletException(e);