public class XaJmsTransactionalConnection extends JmsTransactionalConnection implements org.mule.runtime.extension.api.connectivity.XATransactionalConnection
ConnectionFactory with XA enabled.
This class provides all the functionality required to work with Bitronix Transaction Manager.| Constructor and Description |
|---|
XaJmsTransactionalConnection(JmsSupport jmsSupport,
javax.jms.Connection connection,
JmsSessionManager jmsSessionManager,
CompositeJmsExceptionListener exceptionListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Cleanups all the resources associated with the session.
|
JmsSession |
getSession(InternalAckMode ackMode,
boolean isTopic)
Provides access to the
JmsSession to be used. |
XAResource |
getXAResource()
This method gets called when there's an XA transaction in context.
|
begin, commit, rollbackcreateConsumer, createConsumer, createProducer, createSession, dispose, get, getJmsSessionManager, getJmsSupport, registerExceptionListener, setConnection, stoppublic XaJmsTransactionalConnection(JmsSupport jmsSupport, javax.jms.Connection connection, JmsSessionManager jmsSessionManager, CompositeJmsExceptionListener exceptionListener)
public XAResource getXAResource()
JmsSession.getXAResource in interface org.mule.runtime.extension.api.connectivity.XATransactionalConnectionpublic JmsSession getSession(InternalAckMode ackMode, boolean isTopic) throws javax.jms.JMSException
JmsSession to be used. If there's a transactional context with a session already attached then
that session will be returned. Otherwise a new session will be created.ackMode - isTopic - javax.jms.JMSExceptionpublic void close()
close in interface org.mule.runtime.extension.api.connectivity.XATransactionalConnectionCopyright © 2020. All rights reserved.