[jboss-jira] [JBoss JIRA] Commented: (JBAS-6394) CachedConnectionManager start transaction for all connection in cache.

Nattapong Triammeerit (JIRA) jira-events at lists.jboss.org
Wed Jan 21 05:33:04 EST 2009


    [ https://jira.jboss.org/jira/browse/JBAS-6394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12448954#action_12448954 ] 

Nattapong Triammeerit commented on JBAS-6394:
---------------------------------------------

Hi Adrian,

Thank a lot for your explanation, but can you describe me more? 

How the JBoss notify CCM and what CCM do when JBoss notify an inner transactional?

Thanks

> CachedConnectionManager start transaction for all connection in cache.
> ----------------------------------------------------------------------
>
>                 Key: JBAS-6394
>                 URL: https://jira.jboss.org/jira/browse/JBAS-6394
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: JCA service
>         Environment: JBossAS-4.2.2.GA, jdk1.5_14, windows XP SP2, spring framework 2.5.1
>            Reporter: Nattapong Triammeerit
>
> I use spring to implement database dao leyer and transaction management. I got a error "Trying to start a new tx when old is not complete! ..." when I try to create the transaction after directly getting database connection from datasource.
> The scenario is
> 1. Firstly get database connection from datasource. The connection is added to CachedConnectionManager.
> 2. Start the transaction, the connection in CachedConnectionManager is started.
> 3. Get database connection from datasource again. It throw "org.jboss.resource.connectionmanager.JBossLocalXAException: Trying to start a new tx when old is not complete! ..."
> I think, It raise an error becuase it start the first connection in CachedConnectionManager but JBoss transaction manager unknown it and cannot suspense it before inner transaction started. Does it is correct to start transaction to all connection of CachedConnectionManager?
> Thanks

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list