tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hwaastad <>
Subject basic ejb lookup question...
Date Mon, 12 May 2014 11:16:20 GMT
having two applications in the same TomEE.
(Hope I'm making sense here..)

Web App 1:
  - dependency: ejb-jar
Web App 2:
  - dependency: ejb-jar-client

is it possible to use:

<JndiProvider id="myInitialContext" type="javax.naming.InitialContext">
        java.naming.factory.initial =

@EJB(mappedName = "jndi:ext://myInitialContext/<The remote interface>") in
App 2?

(or is it only possible in the same war/ear)

The reason for asking is that I have three deployment scenarios for web app
1. another server
2. in an ear (including app 1)
3. same server, different app 

1. using RemoteInitialContextFactory in provider is OK
2. using @EJB(name="<portable JNDI>") is also OK.

br hw

View this message in context:
Sent from the OpenEJB User mailing list archive at

View raw message