[
https://jira.jboss.org/jira/browse/JBTM-491?page=com.atlassian.jira.plugi...
]
Andrew Dinn closed JBTM-491.
----------------------------
Resolution: Done
This is now fixed. This involved deleting the UserSubtransaction class which is not the
right way to do things. UserTransaction now manages begin, commit and rollback of any
current AT transaction wheher it is subordinate or top-level.
The documentation still needs updating -- a separate JIRA will be raised for this.
WS-AT needs ot provide an API allowing a Subordinate Transaction to
be created and managed from within an AT transaction.
-------------------------------------------------------------------------------------------------------------------------
Key: JBTM-491
URL:
https://jira.jboss.org/jira/browse/JBTM-491
Project: JBoss Transaction Manager
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: WS-T Implementation
Affects Versions: 4.5
Reporter: Andrew Dinn
Assignee: Andrew Dinn
Fix For: 4.6
A web service executing within a WS-AT transaction may wish to interpose a subordinate
coordinator between itself and its own coordinator. To do so it needs to be able to start
a subordinate WS-AT transaction. The current API for creating AT transactions requires
calling UserTransactionFactory.userTransaction() to obtain an instance of UserTransaction
and then calling begin() (or begin(final int timeout)) on the returned UserTransaction to
start the transaction. If this is done within an existing AT transaction a
WrongStateException is thrown. This request proposes to add the following methods to
UserTransaction()
public void beginSubordinate() throws WrongStateException, SystemException;
public void beginSubordinate(int timeout) throws WrongStateException, SystemException;
These methods will begin a subordinate transaction so long as the thread is currently
associated with a WS-AT transaction. WrongStateException will be thrown if the thread is
not currently associated with a WS-AT transaction. SystemException will be thrown if a
problem occurs starting the transaction (this can occur for much the same reasons it can
occur with the normal begin methods).
--
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