Class InboundSession

    • Field Detail

      • logger

        private static final Logger logger
      • DEBUG

        private static final boolean DEBUG
      • consumer

        private InboundConsumer consumer
        InboundConsumer instance this session belongs to.
      • workManager

        private WorkManager workManager
        Application server's WorkManager instance.
      • session

        private Session session
        Session instance dedicated to processing the delivered messages.
      • xaResource

        private XAResource xaResource
        XAResource instance, if any.
    • Constructor Detail

      • InboundSession

        InboundSession​(InboundConsumer consumer,
                       WorkManager workManager,
                       MessageEndpointFactory endpointFactory,
                       XAConnection cnx,
                       boolean transacted,
                       int ackMode)
        Constructs an InboundSession instance.
        Parameters:
        consumer - InboundConsumer creating this session.
        workManager - Application server's WorkManager instance.
        endpointFactory - Application's endpoints factory.
        cnx - Connection to the underlying JORAM server.
        transacted - true if deliveries occur within a XA transaction.
    • Method Detail

      • start

        public void start()
                   throws JMSException
        Notifies that the messages are ready to be processed.
        Specified by:
        start in interface ServerSession
        Throws:
        JMSException - If submitting the processing work fails.
      • release

        public void release()
        javax.resource.spi.Work method, not effective.
        Specified by:
        release in interface Work
      • run

        public void run()
        Runs the wrapped session for processing the messages.
        Specified by:
        run in interface Runnable
      • onMessage

        public void onMessage​(Message message)
        Forwards a processed message to an endpoint.
        Specified by:
        onMessage in interface MessageListener