Class MessageTools


  • public final class MessageTools
    extends Object

    Utility functions to copy and normalize JMS messages.

    • Constructor Detail

      • MessageTools

        public MessageTools()
    • Method Detail

      • makeInternalCopy

        public static AbstractMessage makeInternalCopy​(javax.jms.Message srcMessage)
                                                throws javax.jms.JMSException
        Create an internal copy of the message if necessary
        Throws:
        javax.jms.JMSException
      • normalize

        public static AbstractMessage normalize​(javax.jms.Message srcMessage)
                                         throws javax.jms.JMSException
        Convert the message to native type if necessary
        Throws:
        javax.jms.JMSException
      • duplicate

        public static AbstractMessage duplicate​(javax.jms.Message srcMessage)
                                         throws javax.jms.JMSException
        Create an independant copy of the given message
        Throws:
        javax.jms.JMSException