[JBoss JIRA] Commented: (JBAS-3364) Support PROPAGATION_NESTED in JTA implementation
by Yegor Yenikyeyev (JIRA)
[ http://jira.jboss.com/jira/browse/JBAS-3364?page=comments#action_12366616 ]
Yegor Yenikyeyev commented on JBAS-3364:
----------------------------------------
Thanks for the explanation, Mark! It looks pretty fair to me but what we were really trying to do (when i posted the issue) is just a nested JDBC transaction (which i believe JDBC 3.0 compliant and nested tx-aware) using the same datasource.
The original issue was that I discovered a kind of deadlock of wrapping and nested transactions on an object in L2 cache (and this seems to be fixed in 1.4.x). Then i discovered this issue when i dug into details. As for me it looks like commit for nested tx (f2) is not being performed at all.
> Support PROPAGATION_NESTED in JTA implementation
> ------------------------------------------------
>
> Key: JBAS-3364
> URL: http://jira.jboss.com/jira/browse/JBAS-3364
> Project: JBoss Application Server
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Reporter: Yegor Yenikyeyev
>
> Is it possible to support nested JTA transactions in one of upcoming version? For this moment i see the following in TxManager.java
> if (current != null)
> {
> if (current.isDone())
> disassociateThread(ti);
> else
> throw new NotSupportedException
> ("Transaction already active, cannot nest transactions.");
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 1 month
[JBoss JIRA] Commented: (JBAS-3364) Support PROPAGATION_NESTED in JTA implementation
by Mark Little (JIRA)
[ http://jira.jboss.com/jira/browse/JBAS-3364?page=comments#action_12366596 ]
Mark Little commented on JBAS-3364:
-----------------------------------
In order to support nested transactions you need a nested transaction-aware coordinator and nested transaction-aware participants. The latter is pretty critical because what a participant does when it's told to commit in a nested transaction is completely different to a top-level transaction. Such participants are tailored for the backend datasource. JBossTS provides a nested transaction-aware coordinator and some nested transaction-aware participants. Take a look at the TS manuals (Core Transaction Engine) and you'll see.
However, XA doesn't support nested transactions. And while JTA doesn't prevent them, JEE does not allow them for this reason. It's a strange situation to be in, I know! There's no way you can support true nested transactions with XA, so JTA should really be fixed.
JBossTS continues to support nested transactions through JTA because you can register non-XA resources with our JTA transactions through other APIs. But as far as TS is concerned it's doing as much as it can. The rest is up to the datasource providers: implement nested transaction participants and this should just work (tm).
> Support PROPAGATION_NESTED in JTA implementation
> ------------------------------------------------
>
> Key: JBAS-3364
> URL: http://jira.jboss.com/jira/browse/JBAS-3364
> Project: JBoss Application Server
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Reporter: Yegor Yenikyeyev
>
> Is it possible to support nested JTA transactions in one of upcoming version? For this moment i see the following in TxManager.java
> if (current != null)
> {
> if (current.isDone())
> disassociateThread(ti);
> else
> throw new NotSupportedException
> ("Transaction already active, cannot nest transactions.");
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 1 month