*/
void updateContactDataFromController (final Contact userContact);
- /**
- * Adds given email address to list
- * <p>
- * @param contactEmailAddress Email address to add
- */
- void addEmailAddress (final String contactEmailAddress);
-
/**
* Tries to lookup contact by given id number. If the user is not found a
* proper exceptions are thrown.
import javax.naming.InitialContext;
import javax.naming.NamingException;
import org.mxchange.jcontacts.contact.Contact;
-import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
-import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
-import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
import org.mxchange.jcontacts.contact.ContactSessionBeanRemote;
import org.mxchange.jusercore.events.login.UserLoggedInEvent;
import org.mxchange.jusercore.events.registration.UserRegisteredEvent;
*/
private static final long serialVersionUID = 542_145_347_916L;
+ /**
+ * Contact EJB
+ */
+ private ContactSessionBeanRemote contactBean;
+
/**
* General contact controller
*/
// Try to lookup
this.userBean = (UserSessionBeanRemote) context.lookup("java:global/PizzaService-ejb/user!org.mxchange.jusercore.model.user.UserSessionBeanRemote"); //NOI18N
+
+ // Try to lookup
+ this.contactBean = (ContactSessionBeanRemote) context.lookup("java:global/PizzaService-ejb/contact!org.mxchange.jcontacts.contact.ContactSessionBeanRemote"); //NOI18N
} catch (final NamingException e) {
// Throw again
throw new FaceletException(e);