public class JmsTransactionalConnection extends JmsConnection implements org.mule.runtime.extension.api.connectivity.TransactionalConnection
JmsConnection which implements TransactionalConnection for Transaction Support in the
JmsConnector| Constructor and Description |
|---|
JmsTransactionalConnection(JmsSupport jmsSupport,
javax.jms.Connection connection,
JmsSessionManager jmsSessionManager,
CompositeJmsExceptionListener exceptionListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
Begins a new Transaction for a JMS Session indicating in the
JmsSessionManager that the current Thread is
being part of a transaction. |
void |
commit()
Executes a commit action over the bound
JmsSession to the current Thread |
void |
rollback()
Executes a rollback action over the bound
JmsSession to the current Thread |
createConsumer, createConsumer, createProducer, createSession, dispose, get, getJmsSessionManager, getJmsSupport, registerExceptionListener, setConnection, stoppublic JmsTransactionalConnection(JmsSupport jmsSupport, javax.jms.Connection connection, JmsSessionManager jmsSessionManager, CompositeJmsExceptionListener exceptionListener)
public void begin()
JmsSessionManager that the current Thread is
being part of a transaction.begin in interface org.mule.runtime.extension.api.tx.Transactionalpublic void commit()
throws org.mule.runtime.api.tx.TransactionException
JmsSession to the current Threadcommit in interface org.mule.runtime.extension.api.tx.Transactionalorg.mule.runtime.api.tx.TransactionExceptionpublic void rollback()
throws org.mule.runtime.api.tx.TransactionException
JmsSession to the current Threadrollback in interface org.mule.runtime.extension.api.tx.Transactionalorg.mule.runtime.api.tx.TransactionExceptionCopyright © 2021. All rights reserved.