Class BambooMessageConverter

  • All Implemented Interfaces:
    org.springframework.jms.support.converter.MessageConverter

    public class BambooMessageConverter
    extends Object
    implements org.springframework.jms.support.converter.MessageConverter
    A simple message converter that by default uses XStream to serialize/deserialize messages and allows use of custom converters.
    • Constructor Detail

      • BambooMessageConverter

        @Deprecated
        public BambooMessageConverter()
        Deprecated.
        since 5.10 use the other constructor or inject the bean
      • BambooMessageConverter

        public BambooMessageConverter​(@NotNull
                                      @NotNull XStreamFactory xStreamFactory)
    • Method Detail

      • toMessage

        public javax.jms.Message toMessage​(@NotNull
                                           @NotNull Object object,
                                           @NotNull
                                           @NotNull javax.jms.Session session)
                                    throws javax.jms.JMSException,
                                           org.springframework.jms.support.converter.MessageConversionException
        Specified by:
        toMessage in interface org.springframework.jms.support.converter.MessageConverter
        Throws:
        javax.jms.JMSException
        org.springframework.jms.support.converter.MessageConversionException
      • fromMessage

        public Object fromMessage​(javax.jms.Message message)
                           throws javax.jms.JMSException,
                                  org.springframework.jms.support.converter.MessageConversionException
        Specified by:
        fromMessage in interface org.springframework.jms.support.converter.MessageConverter
        Throws:
        javax.jms.JMSException
        org.springframework.jms.support.converter.MessageConversionException