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. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3905445#3905445 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3905445 ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user