Class MessageInspector


  • public final class MessageInspector
    extends Object
    Utility to inspect JMS Messages.
    Since:
    jadice server 4.3.1.1
    • Method Detail

      • inspect

        public static void inspect​(javax.jms.Message message,
                                   CommunicationSide side,
                                   MessageInspector.Direction direction)
                            throws javax.jms.JMSException
        Prints the details of the Message as DEBUG to the Logger MessageInspector.
        Parameters:
        message - the JMS message to inspect
        side - the side this componen lives on: CLIENT or SERVER
        direction - signalize if the message to inspect is incoming or outgoing
        Throws:
        javax.jms.JMSException - if accessing the Message failed
        Since:
        jadice server 5.3.0.0
      • inspect

        public static void inspect​(javax.jms.Message message,
                                   CommunicationSide side,
                                   MessageInspector.Direction direction,
                                   PrintStream stream)
                            throws javax.jms.JMSException
        Prints the details of the Message into the given stream.
        Parameters:
        message - the JMS message to inspect
        side - the side this componen lives on: CLIENT or SERVER
        direction - signalize if the message to inspect is incoming or outgoing
        stream - where to print the message details
        Throws:
        javax.jms.JMSException - if accessing the Message failed
        Since:
        jadice server 5.3.0.0