Proper handling of the Session / EntityManager after an exception has been thrown in Hibernate
Issue
- What do I do with the EntityManager after an exception has been thrown?
- In a Seam long running conversation how to I get a new EntityManager and discard the old one?
Environment
- JBoss Enterprise Application Platform (EAP)
- 4
- 5
- 6
- 7
- Hibernate
- 3
- 4
- 5
- Seam 2.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.
