Not sure what you mean. That reference is purely about registering a subordinate synchronization with the original transaction coordinator. JBossTS does this already because it's an optional part of the OTS specification. You create and enlist the sub-synchronization with the root transaction when the context is imported and then when any local synchronizations are added, they register with the sub-synchronization.


I mean if a JavaEE provider uses OTS to implement JTA
you cannot map the above method directly onto OTS because the
co-ordinator will raise TRANSACTION_ROLLBACK

So remembering that the JTA is badly written (1.0.1 and 1.1), the intention in the registerInterposedSynchronization is that the transaction is active ("Other than the transaction context, no component J2EE context is active during either of the callbacks.") - has not been marked as rollback-only and is not terminating. Unfortunately there's no guarantee (hence the reference to the fact the spec is still badly written). This doesn't prevent it being mapped onto OTS at all: it just means that we have to throw a javax.transaction.SystemException that is vendor specific. The downside of having to invent our own exception is that it affects portability, but more importantly it ensures that the right information is conveyed to the application. What should really happen is that the spec. gets fixed!

Actually, OTS has slightly weaker language:
"TRANSACTION_ROLLEDBACK **may be** raised if the transaction has been marked rollback only."

Yes, and unfortunately we didn't use RFC2119 to define terms like MAY and SHOULD, so it's even more lax than usual. However, all implementations I'm aware of would throw TRANSACTION_ROLLEDBACK (at least by default).

Mark.



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to