]
Steve Ebersole closed HHH-982.
------------------------------
Closing stale resolved issues
Autoclosing connections in JTA env. after session.connection() in
3.1.rc1
-------------------------------------------------------------------------
Key: HHH-982
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-982
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.1 rc 1
Environment: Hibernate 3.1.rc1
Hibernate annotations 3.1.rc1
JOTM 2.0.10
Reporter: Sergey Vladimirov
After moving from Hibernate 3.0.5 to 3.1.rc1, this code works wrong:
public void testMultiJTATransactions() throws Exception {
UserTransaction userTransaction = JOTMTransactionFactory
.getUserTransaction();
for (int i = 0; i < 100; i++) {
userTransaction.begin();
Session session = sessionFactory.getCurrentSession();
session.connection();
userTransaction.commit();
}
}
In 3.0 all session connections closes after transaction.commit, but not in 3.1 - all
connections locked in XA pool:
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: