Re: Force closing an entity manager which has thrown a "Multiple concurrent threads..." exception

2021-10-06 Thread Romain Manni-Bucau
Hi, In most cases it will be fine but a few ones can leak some attached entities or JDBC connection - even if unlikely. Also note that depending how your app is written and where it runs, your EMF can not be 1-1 with OpenJPA one so you can check there too. That said rather than trying to clean up

Force closing an entity manager which has thrown a "Multiple concurrent threads..." exception

2021-10-06 Thread Tuomas Hynninen
Hello, We have a web application where entity managers are bound to a thread for the request duration and at the end of the request the entity manager is closed and removed from the thread. When the entity manager is incorrectly shared between threads, and the “Multiple concurrent threads atte