Class OutboundTopicConnection

  • All Implemented Interfaces:
    jakarta.jms.Connection, jakarta.jms.TopicConnection, AutoCloseable, OutboundConnectionMBean

    public class OutboundTopicConnection
    extends OutboundConnection
    implements jakarta.jms.TopicConnection
    An OutboundTopicConnection instance 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).
    • 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 an OutboundTopicConnection instance.
        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: OutboundConnection
        Returns true if the parameter is a Connection instance sharing the same proxy identifier and connection key.
        Overrides:
        cnxEquals in class OutboundConnection
      • createTopicSession

        public jakarta.jms.TopicSession createTopicSession​(boolean transacted,
                                                           int acknowledgeMode)
                                                    throws jakarta.jms.JMSException
        Returns the unique authorized JMS session per connection wrapped in an OutboundTopicSession instance.
        Specified by:
        createTopicSession in interface jakarta.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.JMSException
        Forbidden call on an application or component's outbound connection, throws a IllegalStateException instance.
        Specified by:
        createConnectionConsumer in interface jakarta.jms.TopicConnection
        Throws:
        jakarta.jms.JMSException