Package bitronix.tm.resource.jms.lrc
Class LrcXAConnection
java.lang.Object
bitronix.tm.resource.jms.lrc.LrcXAConnection
- All Implemented Interfaces:
AutoCloseable,javax.jms.Connection,javax.jms.XAConnection
XAConnection implementation for a non-XA JMS resource emulating XA with Last Resource Commit.
- Author:
- lorban
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()javax.jms.ConnectionConsumercreateConnectionConsumer(javax.jms.Destination destination, String messageSelector, javax.jms.ServerSessionPool serverSessionPool, int maxMessages) javax.jms.ConnectionConsumercreateDurableConnectionConsumer(javax.jms.Topic topic, String subscriptionName, String messageSelector, javax.jms.ServerSessionPool serverSessionPool, int maxMessages) javax.jms.Sessionjavax.jms.SessioncreateSession(boolean transacted, int acknowledgeMode) javax.jms.SessioncreateSession(int sessionMode) javax.jms.ConnectionConsumercreateSharedConnectionConsumer(javax.jms.Topic topic, String subscriptionName, String messageSelector, javax.jms.ServerSessionPool sessionPool, int maxMessages) javax.jms.ConnectionConsumercreateSharedDurableConnectionConsumer(javax.jms.Topic topic, String subscriptionName, String messageSelector, javax.jms.ServerSessionPool sessionPool, int maxMessages) javax.jms.XASessionjavax.jms.ExceptionListenerjavax.jms.ConnectionMetaDatavoidsetClientID(String clientID) voidsetExceptionListener(javax.jms.ExceptionListener exceptionListener) voidstart()voidstop()toString()
-
Constructor Details
-
LrcXAConnection
public LrcXAConnection(javax.jms.Connection connection)
-
-
Method Details
-
createXASession
public javax.jms.XASession createXASession() throws javax.jms.JMSException- Specified by:
createXASessionin interfacejavax.jms.XAConnection- Throws:
javax.jms.JMSException
-
createSession
public javax.jms.Session createSession(boolean transacted, int acknowledgeMode) throws javax.jms.JMSException - Specified by:
createSessionin interfacejavax.jms.Connection- Specified by:
createSessionin interfacejavax.jms.XAConnection- Throws:
javax.jms.JMSException
-
createSession
public javax.jms.Session createSession(int sessionMode) throws javax.jms.JMSException - Specified by:
createSessionin interfacejavax.jms.Connection- Throws:
javax.jms.JMSException
-
createSession
public javax.jms.Session createSession() throws javax.jms.JMSException- Specified by:
createSessionin interfacejavax.jms.Connection- Throws:
javax.jms.JMSException
-
createConnectionConsumer
public javax.jms.ConnectionConsumer createConnectionConsumer(javax.jms.Destination destination, String messageSelector, javax.jms.ServerSessionPool serverSessionPool, int maxMessages) throws javax.jms.JMSException - Specified by:
createConnectionConsumerin interfacejavax.jms.Connection- Throws:
javax.jms.JMSException
-
createDurableConnectionConsumer
public javax.jms.ConnectionConsumer createDurableConnectionConsumer(javax.jms.Topic topic, String subscriptionName, String messageSelector, javax.jms.ServerSessionPool serverSessionPool, int maxMessages) throws javax.jms.JMSException - Specified by:
createDurableConnectionConsumerin interfacejavax.jms.Connection- Throws:
javax.jms.JMSException
-
getClientID
- Specified by:
getClientIDin interfacejavax.jms.Connection- Throws:
javax.jms.JMSException
-
setClientID
- Specified by:
setClientIDin interfacejavax.jms.Connection- Throws:
javax.jms.JMSException
-
getMetaData
public javax.jms.ConnectionMetaData getMetaData() throws javax.jms.JMSException- Specified by:
getMetaDatain interfacejavax.jms.Connection- Throws:
javax.jms.JMSException
-
getExceptionListener
public javax.jms.ExceptionListener getExceptionListener() throws javax.jms.JMSException- Specified by:
getExceptionListenerin interfacejavax.jms.Connection- Throws:
javax.jms.JMSException
-
setExceptionListener
public void setExceptionListener(javax.jms.ExceptionListener exceptionListener) throws javax.jms.JMSException - Specified by:
setExceptionListenerin interfacejavax.jms.Connection- Throws:
javax.jms.JMSException
-
start
public void start() throws javax.jms.JMSException- Specified by:
startin interfacejavax.jms.Connection- Throws:
javax.jms.JMSException
-
stop
public void stop() throws javax.jms.JMSException- Specified by:
stopin interfacejavax.jms.Connection- Throws:
javax.jms.JMSException
-
close
public void close() throws javax.jms.JMSException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacejavax.jms.Connection- Throws:
javax.jms.JMSException
-
toString
-