Package org.ow2.joram.jakarta.connector
Class OutboundQueueConnection
- java.lang.Object
-
- org.ow2.joram.jakarta.connector.OutboundConnection
-
- org.ow2.joram.jakarta.connector.OutboundQueueConnection
-
- All Implemented Interfaces:
jakarta.jms.Connection,jakarta.jms.QueueConnection,AutoCloseable,OutboundConnectionMBean
public class OutboundQueueConnection extends OutboundConnection implements jakarta.jms.QueueConnection
AnOutboundQueueConnectioninstance is a handler for a physical PTP connection to an underlying JORAM server, allowing a component to transparently use this physical connection possibly within a transaction (local or global).
-
-
Constructor Summary
Constructors Constructor Description OutboundQueueConnection(ManagedConnectionImpl managedCx, jakarta.jms.XAQueueConnection xac)Constructs anOutboundQueueConnectioninstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancnxEquals(Object obj)Returnstrueif the parameter is aConnectioninstance sharing the same proxy identifier and connection key.jakarta.jms.ConnectionConsumercreateConnectionConsumer(jakarta.jms.Queue queue, String messageSelector, jakarta.jms.ServerSessionPool sessionPool, int maxMessages)Forbidden call on an application or component's outbound connection, throws aIllegalStateExceptioninstance.jakarta.jms.QueueSessioncreateQueueSession(boolean transacted, int acknowledgeMode)Returns the unique authorized JMS session per connection wrapped in anOutboundQueueSessioninstance.-
Methods inherited from class org.ow2.joram.jakarta.connector.OutboundConnection
cleanup, close, createConnectionConsumer, createDurableConnectionConsumer, createManagedSession, createSession, createSession, createSession, createSharedConnectionConsumer, createSharedDurableConnectionConsumer, getClientID, getExceptionListener, getJMXBeanName, getMetaData, getNumberOfSession, getSessions, registerMBean, setClientID, setExceptionListener, start, stop, toString, unregisterMBean
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jakarta.jms.Connection
close, createConnectionConsumer, createDurableConnectionConsumer, createSession, createSession, createSession, createSharedConnectionConsumer, createSharedDurableConnectionConsumer, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
-
-
-
-
Field Detail
-
logger
private static final Logger logger
-
DEBUG
private static final boolean DEBUG
-
-
Constructor Detail
-
OutboundQueueConnection
OutboundQueueConnection(ManagedConnectionImpl managedCx, jakarta.jms.XAQueueConnection xac)
Constructs anOutboundQueueConnectioninstance.- Parameters:
managedCx- The managed connection building the handle.xac- The underlying physical PTP connection to handle.
-
-
Method Detail
-
cnxEquals
public boolean cnxEquals(Object obj)
Description copied from class:OutboundConnectionReturnstrueif the parameter is aConnectioninstance sharing the same proxy identifier and connection key.- Overrides:
cnxEqualsin classOutboundConnection
-
createQueueSession
public jakarta.jms.QueueSession createQueueSession(boolean transacted, int acknowledgeMode) throws jakarta.jms.JMSExceptionReturns the unique authorized JMS session per connection wrapped in anOutboundQueueSessioninstance.- Specified by:
createQueueSessionin interfacejakarta.jms.QueueConnection- Throws:
jakarta.jms.IllegalStateException- If the handle is invalid.jakarta.jms.JMSException- Generic exception.
-
createConnectionConsumer
public jakarta.jms.ConnectionConsumer createConnectionConsumer(jakarta.jms.Queue queue, String messageSelector, jakarta.jms.ServerSessionPool sessionPool, int maxMessages) throws jakarta.jms.JMSExceptionForbidden call on an application or component's outbound connection, throws aIllegalStateExceptioninstance.- Specified by:
createConnectionConsumerin interfacejakarta.jms.QueueConnection- Throws:
jakarta.jms.JMSException
-
-