The JTA transaction synchronization don't respect the JTA 1.1
specification
---------------------------------------------------------------------------
Key: JBTM-664
URL:
https://jira.jboss.org/jira/browse/JBTM-664
Project: JBoss Transaction Manager
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: JTA
Affects Versions: 4.5.0, 4.6.1.CP04
Environment: jboss AS 5.0.1 GA
Reporter: Olivier BILLIARD
Assignee: Mark Little
Priority: Critical
Attachments: TransactionSynchronizationRegistryImple.java
According to the JTA 1.1 specification, the registerInterposedSynchronization must throw
an IllegalStateException if the no transaction is active (
http://java.sun.com/javaee/5/docs/api/javax/transaction/TransactionSynchr...
). The current code throw a RuntimeException. It's a problem because some third party
framework, like Spring, only catch RollbackException, SystemException and
IllegalStateException.
It'll be great to modify the registerInterposedSynchronization method for throwing
the expected exception.
I attach the corrected source file.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: