Re: [hibernate-dev] Example of WildFly JPA container safely closing the EntityManager after the application calls transaction.rollback, which also handles background tx reaper thread time outs

2017-01-26 Thread Scott Marlow
Artifact that contains the org.jboss:jboss-transaction-spi (WildFly is currently using version 7.5.0.Final of this artifact). On Thu, Jan 26, 2017 at 9:28 AM, Scott Marlow wrote: > Hi, > > [1] is an example of how the WildFly JPA container is ensuring that > the background

[hibernate-dev] Example of WildFly JPA container safely closing the EntityManager after the application calls transaction.rollback, which also handles background tx reaper thread time outs

2017-01-26 Thread Scott Marlow
Hi, [1] is an example of how the WildFly JPA container is ensuring that the background (transaction manager) reaper (transaction timeout) thread does not cause EntityManager.close() to be called, while the application is actively executing calls to EntityManager.*(). The idea, as suggested by