Class OutboundQueueConnection
- java.lang.Object
-
- org.objectweb.joram.client.connector.OutboundConnection
-
- org.objectweb.joram.client.connector.OutboundQueueConnection
-
- All Implemented Interfaces:
AutoCloseable,Connection,QueueConnection,OutboundConnectionMBean
public class OutboundQueueConnection extends OutboundConnection implements 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, 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.ConnectionConsumercreateConnectionConsumer(Queue queue, String messageSelector, ServerSessionPool sessionPool, int maxMessages)Forbidden call on an application or component's outbound connection, throws aIllegalStateExceptioninstance.QueueSessioncreateQueueSession(boolean transacted, int acknowledgeMode)Returns the unique authorized JMS session per connection wrapped in anOutboundQueueSessioninstance.-
Methods inherited from class org.objectweb.joram.client.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 javax.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, 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 QueueSession createQueueSession(boolean transacted, int acknowledgeMode) throws JMSException
Returns the unique authorized JMS session per connection wrapped in anOutboundQueueSessioninstance.- Specified by:
createQueueSessionin interfaceQueueConnection- Throws:
IllegalStateException- If the handle is invalid.JMSException- Generic exception.
-
createConnectionConsumer
public ConnectionConsumer createConnectionConsumer(Queue queue, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException
Forbidden call on an application or component's outbound connection, throws aIllegalStateExceptioninstance.- Specified by:
createConnectionConsumerin interfaceQueueConnection- Throws:
JMSException
-
-