Interface MessageInterceptor


  • public interface MessageInterceptor
    Session level message interceptor interface. The MessageInterceptor should be implemented by any class whose instances are intended to intercept either or both following operations within a JMS Session: The interceptor can be attached to a JMS Session through configuration (see joramAdmin.xml) as IN when consuming a message or OUT when producing a message) interceptor.
    Author:
    benammoura
    • Method Detail

      • handle

        void handle​(Message message,
                    Session session)
        Handles a message before proceeding.

        By convention, the implementation can modify the original message or the current runtime context, and return no out value. It also avoids to throw any exception within this method.

        Parameters:
        message - the message to handle.
        session - the current session of the JMS interaction