tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <>
Subject Re: Accessing Remote EJBs
Date Tue, 21 Aug 2012 12:02:18 GMT
can you explicit the "does not work"? you should be able to produce a

BTW in openejb (not sure about Geronimo) you can configure the way you want
to lookup your ejb and then inject it with @EJB(mappedName =
"jndi:ext://<properties provider id>:<ejb name>")

the properties provider is a resource:

<Resource id="... type="org.apache.openejb.config.sys.JndiProvider>
  java.naming.factory.initial = ...
  // your other initial context properties

*Romain Manni-Bucau*
*Twitter: @rmannibucau*

2012/8/21 Steve Hostettler <>

> Hi all!
> I use geronimo 3.0 and therefore OpenEJB.
> My projects are organized as follows:
> so far so good. Now I have a second EAR
> EAR2 will be most likely on the same server as EAR1 (but that is still
> under
> discussion) From WS1 I can access to EJB1 with a jndi lookup:
> This does work but I do not like it for testing reasons. I would like to be
> able to use the @Inject coupled with an @Produces Something like Class1:
> The problem is that the producer does not work, it simply does not use it.
> Nevertheless if I use a producer for POJO (not an EJB) it does work.
> Furthermore, I did not manage to inject the remote EJB with
> @EJB(lookup="....") I did find the tutorials and tried them but without
> success. Any idea? Many thanks in advance
> --
> View this message in context:
> Sent from the OpenEJB User mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message