Interface SessionAwareMessageListener<M extends Message>

    • Method Detail

      • 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.

        Parameters:
        message - the received JMS message (never null)
        session - the underlying JMS Session (never null)
        Throws:
        JMSException - if thrown by JMS methods