Can CDI inject remote instances of my Bean?

Can CDI enter EJB references in my remote EJB client?

In fact, I have a test case of JUnit that runs locally on my system and access to EJB running on stand-alone JBoss AS. I am currently using JNDI to access the remote bean business interface and testing.

I would like to know if @Inject can help me insert my EJB instance directly in my test case here so that I can avoid JNDI lookups and still access EJBs?

+5
source share
1 answer

Not portable. From the CDI specification:

bean bean bean . bean bean, bean bean . , java.lang.Object - bean bean.

bean.

+7

All Articles