Class JmsMessageConverter


  • public class JmsMessageConverter
    extends java.lang.Object
    Utility converter for JMS Messages where we simply want to extract the payload content.
    Author:
    Ikasan Development Team
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object extractContent​(javax.jms.Message message)
      For the given Message try to extract the actual payload content and return as that content type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JmsMessageConverter

        public JmsMessageConverter()
    • Method Detail

      • extractContent

        public static java.lang.Object extractContent​(javax.jms.Message message)
                                               throws javax.jms.JMSException
        For the given Message try to extract the actual payload content and return as that content type. This supports the following JMS Message conversions, TextMessage -> String MapMessage -> Map ObjectMessage -> Object All other types are simply returned as their native JMS message.
        Parameters:
        message -
        Returns:
        Throws:
        javax.jms.JMSException