Is there a quickstart example that uses EntityManager with transactions from a servlet ?
Issue
- We cannot find a quickstart example that uses
EntityManagerwith transactions from aServlet. Do I need to use a stateless Session Bean? - How can we configure the
EntityManagerin aServlet? - What is the difference in using
@EJBand the CDI@Injectwhile injecting the Bean ? - Is there any advantage of using the
@Injectas oppossed to using the@EJB?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.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.
