To illustrate the code in question:
protected void closeSession() {
| if ( this.getSession().isOpen() ) {
| this.getSession().getTransaction().commit();
| this.getSession().close();
| }
| }
When it gets into the "if", the session is open. After the commit, the session
is closed. Thus, calling this.getSession().close() throws the "Session is already
closed" exception. Why is the commit closing the session?
BTW, this behaviour only happens on 4.0.04GA and not 4.0.03 with identical datasource /
Hibernate configurations.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974957#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...