接口 SessionAwareMessageListener<M extends Message>

    • 方法详细资料

      • onMessage

        void onMessage​(M message,
                       Session session)
                throws JMSException
        Callback for processing a received JMS message.

        Implementors are supposed to process the given Message, typically sending reply messages through the given Session.

        参数:
        message - the received JMS message (never null)
        session - the underlying JMS Session (never null)
        抛出:
        JMSException - if thrown by JMS methods