[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-982) Autoclosing connections in JTA env. after session.connection() in 3.1.rc1

Steve Ebersole (JIRA) noreply at atlassian.com
Mon Mar 21 13:00:27 EDT 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-982?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list