Class OutboundQueueConnection

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

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

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