tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: basic ejb lookup question...
Date Mon, 12 May 2014 11:25:03 GMT
Hi


not the remote interface but the EJB name would work


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-05-12 13:16 GMT+02:00 hwaastad <helge@waastad.org>:
> 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