Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client Java API Programmer's Guide | Transaction Semantics | Using Broker Transaction Clients | Ending a Transaction | Aborting a Transaction
Aborting a Transaction
Use the abort method to end an open transaction, or use the abortAll method to end a given list of open transactions. These methods will discard all work previously performed and will invalidate the transaction(s).
The following example contains an excerpt that shows the use of the abort method.
. . .
// abort transaction
try {
} catch (BrokerException ex) {
System.out.println ("FAIL abort_publish:Error on transactional abort" +ex);
. . .