This content has been marked as final.
Show 3 replies
-
1. Re: Closing hibernate sessions
julien1 Nov 2, 2005 8:24 AM (in response to martingi)indeed JBoss Portal takes care of closing the session when the request is finished and the session must be closed.
-
2. Re: Closing hibernate sessions
alesj Nov 4, 2005 7:13 AM (in response to martingi)This is all taken care by Hibernate - when using SessionFactory.getCurrentSession().
But it depends on the active transaction - which is delivered to you by JBoss Portal (in v2.0 by TransactionFilter, in v2.2 by TransactionInterceptor).
The thing that finally closes your session is the ability of JTA synchronization registry. So your session is closed when underlying transaction is complete. -
3. Re: Closing hibernate sessions
julien1 Nov 4, 2005 7:18 AM (in response to martingi)well said Justin