Package org.ow2.joram.jakarta.connector
Class OutboundTopicConnection
- java.lang.Object
-
- org.ow2.joram.jakarta.connector.OutboundConnection
-
- org.ow2.joram.jakarta.connector.OutboundTopicConnection
-
- All Implemented Interfaces:
jakarta.jms.Connection,jakarta.jms.TopicConnection,AutoCloseable,OutboundConnectionMBean
public class OutboundTopicConnection extends OutboundConnection implements jakarta.jms.TopicConnection
AnOutboundTopicConnectioninstance is a handler for a physical PubSub 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 OutboundTopicConnection(ManagedConnectionImpl managedCx, jakarta.jms.XATopicConnection xac)Constructs anOutboundTopicConnectioninstance.
-
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.Topic topic, String messageSelector, jakarta.jms.ServerSessionPool sessionPool, int maxMessages)Forbidden call on an application or component's outbound connection, throws aIllegalStateExceptioninstance.jakarta.jms.TopicSessioncreateTopicSession(boolean transacted, int acknowledgeMode)Returns the unique authorized JMS session per connection wrapped in anOutboundTopicSessioninstance.-
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
-
-
-
-
Field Detail
-
logger
private static final Logger logger
-
DEBUG
private static final boolean DEBUG
-
-
Constructor Detail
-
OutboundTopicConnection
OutboundTopicConnection(ManagedConnectionImpl managedCx, jakarta.jms.XATopicConnection xac)
Constructs anOutboundTopicConnectioninstance.- Parameters:
managedCx- The managed connection building the handle.xac- The underlying physical PubSub 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
-
createTopicSession
public jakarta.jms.TopicSession createTopicSession(boolean transacted, int acknowledgeMode) throws jakarta.jms.JMSExceptionReturns the unique authorized JMS session per connection wrapped in anOutboundTopicSessioninstance.- Specified by:
createTopicSessionin interfacejakarta.jms.TopicConnection- Throws:
jakarta.jms.IllegalStateException- If the handle is invalid.jakarta.jms.JMSException- Generic exception.
-
createConnectionConsumer
public jakarta.jms.ConnectionConsumer createConnectionConsumer(jakarta.jms.Topic topic, 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.TopicConnection- Throws:
jakarta.jms.JMSException
-
-