public class TransactionHelperImpl extends Object implements TransactionHelper
| Constructor and Description |
|---|
TransactionHelperImpl(TransactionManager transactionManager) |
| 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.
|
public TransactionHelperImpl(TransactionManager transactionManager)
public boolean isTransactionAvailable()
throws javax.jms.JMSException
TransactionHelperJMSException.isTransactionAvailable in interface TransactionHelperjavax.jms.JMSException - if transaction service has failed in unexpected way to obtain transaction statuspublic void registerSynchronization(Synchronization synchronization) throws javax.jms.JMSException
TransactionHelperJMSException.registerSynchronization in interface TransactionHelpersynchronization - 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 registeredpublic void registerXAResource(XAResource xaResource) throws javax.jms.JMSException
TransactionHelperJMSException.registerXAResource in interface TransactionHelperxaResource - 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.public void deregisterXAResource(XAResource xaResource) throws javax.jms.JMSException
TransactionHelperJMSException.deregisterXAResource in interface TransactionHelperxaResource - 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 © 2021 JBoss by Red Hat. All rights reserved.