[jboss-dev-forums] [JBoss Transactions Development] - Regression on setRollbackOnly
Mark Little
do-not-reply at jboss.com
Tue Jun 22 17:34:47 EDT 2010
Mark Little [http://community.jboss.org/people/mark.little%40jboss.com] replied to the discussion
"Regression on setRollbackOnly"
To view the discussion, visit: http://community.jboss.org/message/549198#549198
--------------------------------------------------------------
Replying to my own reply ;-)
It's clear that the brain-dead JTA specification text around Transaction.setRollbackOnly doesn't consider the case of an inactive transaction when in fact it should, since to have a Transaction reference it doesn't make sense for IllegalStateException to mean "Thrown if the current thread is not associated with a transaction." If that were the case then Transaction should be null.
Plus it doesn't work in a multi-threaded environment, particularly if checked transaction semantics are disabled.
So it may make sense for derive from ISE rather than SE.
Let me sleep on this, or at least have a few beers.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/549198#549198]
Start a new discussion in JBoss Transactions Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2041]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20100622/423fc08c/attachment.html
More information about the jboss-dev-forums
mailing list