-
1. Re: Long running conversation does not disconnect from session
manarh Mar 27, 2014 8:01 AM (in response to fuhrmannp)yes, it has changed, default is AUTO and it recognizes if you are in JTA or JDBC configuration to select proper value for release_mode. See in HIBERNATE - Relational Persistence for Idiomatic Java
-
2. Re: Long running conversation does not disconnect from session
fuhrmannp Mar 28, 2014 4:52 AM (in response to manarh)Thank you for the hint. I am wondering why Hibernate defaults to "on_close" in my case - according to the docu you point me to it should not. I configured the transaction management using
<transaction:entity-transaction entity-manager="#{entityManager}" /> and a seam managed persistence context in components.xml. May be the reason is JdbcTransactionFactory.getDefaultReleaseMode() of Hibernate, which returns 'ON_CLOSE'. Should'nt Seam make Hibernate use 'AFTER_TRANSACTION' instead?
-
3. Re: Long running conversation does not disconnect from session
manarh Mar 28, 2014 5:53 AM (in response to fuhrmannp)No, Seam can only set flush mode, and it delegates all other things for session handling to entity manager. So you need to configure properly application _persistence.xml_.
-
4. Re: Long running conversation does not disconnect from session
fuhrmannp Mar 28, 2014 6:56 AM (in response to manarh)Ok, thanks.