|
Write a class that:
-
obtains the WebLogic TM
-
starts a txn
-
registers a Synchronization
-
attempts to commit the txn
-
have your Synchronization throw an exception in its beforeCompletion
Do you get back your original exception as part of the exception hierarchy that comes back from WebLogic? If so, as a proof try the following:
-
obtains the WebLogic TM
-
starts a txn
-
registers a Synchronization
-
attempts to commit the txn
-
have your Synchronization mark the transaction for rollback only
-
have your Synchronization throw an exception in its beforeCompletion
Do you now get the same situation as you reported here initially?
|