I've ported my application from JBoss 4.0.3SP1 to 4.0.4RC1. Everything works, up until I try to do an INSERT/UPDATE/DELETE, when I get:
java.lang.RuntimeException: org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=upney/137, BranchQual=, localId=137] status=STATUS_NO_TRANSACTION; - nested throwable: (org.hibernate.SessionException: Session is closed!)
My application uses sessionFactory.getCurrentSession(), and the application code has not be changed from 4.0.3SP1, apart from the necessary EJB3 spec changes.
Has Hibernate transaction/session handling changed in 4.0.4RC1?
I have now resolved this problem. It turned out to be a bug with my application that only now showed up with the recent changes to Session.isOpen() checking in Hibernate. Great to see improvements in JBoss/Hibernate highlighting problems in my application for me.
If anyone has a similar problem - double check that your application is not at fault with some simple test cases.