Querying the transaction mode

An event source can query the transaction mode being used by an emitter.

Why and when to perform this task

Note: Transactions are supported only in a J2EE container.

Steps for this task

To query the current transaction mode, use the getTransactionMode() method.
int transactionMode = emitter.getTransactionMode();
The returned value is an integer corresponding to one of the transaction mode constants:
  • TransactionMode.NEW
  • TransactionMode.SAME

Terms of use |

Last updated: Thu Apr 27 15:02:41 2006

(c) Copyright IBM Corporation 2006.
This information center is powered by Eclipse technology (http://www.eclipse.org)