public interface TransactionHelper
| Modifier and Type | Method and Description |
|---|---|
void |
deregisterXAResource(XAResource xaResource)
Delist XA resource from a current transaction.
|
boolean |
isTransactionAvailable()
Check if transaction is active.
|
void |
registerSynchronization(Synchronization synchronization)
Register synchronization with a current transaction.
|
void |
registerXAResource(XAResource xaResource)
Enlist XA resource to a current transaction.
|
boolean isTransactionAvailable()
throws javax.jms.JMSException
JMSException.javax.jms.JMSException - if transaction service has failed in unexpected way to obtain transaction statusvoid registerSynchronization(Synchronization synchronization) throws javax.jms.JMSException
JMSException.synchronization - synchronization to be registered.javax.jms.JMSException - if error occurred registering synchronization
that occurs when transaction service fails in an unexpected way
or when the transaction is marked for rollback only
or when transaction is in a state where Synchronization callbacks cannot be registeredvoid registerXAResource(XAResource xaResource) throws javax.jms.JMSException
JMSException.xaResource - resource to be enlisted.javax.jms.JMSException - if error occurred enlisting resource
that occurs when transaction service fails in an unexpected way
or when the transaction is marked for rollback only
or when transaction is in a state where resources cannot be enlisted.void deregisterXAResource(XAResource xaResource) throws javax.jms.JMSException
JMSException.xaResource - resource to be delisted.javax.jms.JMSException - if error occurred delisting resource.
that occurs when transaction service fails in an unexpected way
or when transaction is in a state where resources cannot be delisted.Copyright © 2022 JBoss by Red Hat. All rights reserved.