Hi, I'm facing problems accessing an ejb within a cdi bean. I want to call a delegate bean (as cdi defined) from a bpm process. This delegate bean should access an ejb. The ejb resolution results always as NULL. How do I get the Ejb interface? Is there any workaround (through initialcontext or beanmanager) ?
Application-server: glassfish3.1.1 Activiti: 5.12.1 Java-EE: jee6 The ejb and cdi bean are in different jar's deployed
/** * finds the CustomerProfile based on the login * @param login login information * @return the the customerprofile bean. */ CustomerProfile findCustomerProfile(String login);
/** * @param login user login name * @return the persona of the given user */ Persona getPersona(final String login); }
Is your CustomerProfileEJB getting deployed? It seems to me that, aussumed your snippet shows the whole interface, your interface is missing the @Remote annotation to be recognized as an EJB.