Is @Inject equivalent to @EJB @Resource for injection in EAP?
Issue
- Is it possible to use @Inject instead of @EJB to inject a reference to an EJB?
- What is the different between @Inject and @EJB, it seems both work.
- I am confused with @EJB and @Inject, what it the best way to inject a proxy to invoke an EJB?
- Is it possible to use @Inject instead of use @Resource?
- @Inject vs. @EJB
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
- 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
