tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hwaastad <he...@waastad.org>
Subject basic ejb lookup question...
Date Mon, 12 May 2014 11:16:20 GMT
Hi,
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 =
org.apache.openejb.core.LocalInitialContextFactory
</JndiProvider>

and 
@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
2:
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: http://openejb.979440.n4.nabble.com/basic-ejb-lookup-question-tp4669243.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Mime
View raw message