I had to add @Remote to my business interface which my
DefaultRegistrationProcess class implement.

/@Remote
public interface RegistrationProcess {

    public void process(Registration registration);

}/

After that I could make a JNDI lookup using the LocalInitialContextFactory
property and the JNDI name of DefaultRegistrationProcessRemote.

/ Properties p = new Properties();

p.put(Context.INITIAL_CONTEXT_FACTORY,"org.apache.openejb.client.LocalInitialContextFactory");
 new InitialContext(p).lookup("DefaultRegistrationProcessRemote");/



--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/Calling-separate-EJB-from-Web-project-deployed-on-same-server-tp4677588p4677590.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to