the last one looks ok if what is after ! is the interface you use.
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> 2016-02-11 14:25 GMT+01:00 Rentius <[email protected]>: > 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. >
