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