Hi Romain

How would the call look like? I have tried but I think my syntax isn't
right.

When deploying the EJB module separately it shows the global JNDI path in
the log:

/INFO:
Jndi(name=global/myApp-1.0-SNAPSHOT/DefaultRegistrationProcess!com.registration.DefaultRegistrationProcess)
--> Ejb(deployment-id=DefaultRegistrationProcess)
Feb 11, 2016 3:33:05 PM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=global/myApp-1.0-SNAPSHOT/DefaultRegistrationProcess) -->
Ejb(deployment-id=DefaultRegistrationProcess)/

If I want to call the DefaultRegistrationProcess EJB using global do I use;

/new
InitialContext().lookup("java:global/myApp-1.0-SNAPSHOT/DefaultRegistrationProcess")/
OR
/new
InitialContext().lookup("java:lobal/myApp-1.0-SNAPSHOT/DefaultRegistrationProcess!com.registration.DefaultRegistrationProcess")/



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

Reply via email to