I have an EAR that consists primarily of a number of EJB modules. Now I need
to develop a WAR that can be deployed separately from the EAR but references
EJBs from within the EAR. 

Since this makes them separate applications, I know that I need to use
remote business interfaces. So, I annotated the first, most useful, bean (a
@Singleton) with both a @Local business interface for use within the EAR and
a @Remote business interface for use outside the EAR.

I have no problem getting a reference to the EJB using the @EJB annotation
from a bean within the EAR. However, I can't seem to get the POJO JAX-RS
class to successfully obtain a reference to the remote business interface
using either @EJB or @Inject. I either get a NullPointerException (@EJB) or
an UnsatisfiedResolutionException (@Inject).

*This is my REST class:
*

*My Singleton has the following annotations and interfaces:
*


*Is there something that I am missing to get this to work?
*





-----
- Tim
--
View this message in context: 
http://openejb.979440.n4.nabble.com/How-to-reference-an-EJB-in-an-EAR-from-a-separate-WAR-tp4661962.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to