Using CDI, you should be able to write an extension that observes
BeforeBeanDiscovery to add the annotated types using
beanManager.createAnnotatedType(Interface.class) and Impl.class.


On Wed, Apr 3, 2013 at 12:56 PM, ymaraner <[email protected]> wrote:

> Romain Manni-Bucau wrote
> > remote reference are obtained either using a lookup or openejb remote
> > injection feature (see http://tomee.apache.org/ejb-refs.html)
>
> I had looked at that page; however, the problem with these approaches is
> that they all involve entries in the ejb-jar.xml file for EJBs that access
> remote EJBs. I'm trying to reference the remote EJB from a POJO. It has no
> ejb-jar.xml file.
>
> Is it possible to inject a remote EJB reference into a POJO in a different
> application using CDI? Or does the @EJB or @Inject annotation have to be
> inside of another EJB in order to obtain the remote reference?
>
>
>
>
> -----
> - Tim
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/How-to-reference-an-EJB-in-an-EAR-from-a-separate-WAR-tp4661962p4661964.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Reply via email to