spring-framework / org.springframework.jms.support.converter

Package org.springframework.jms.support.converter

Types

MappingJackson2MessageConverter

open class MappingJackson2MessageConverter : SmartMessageConverter, BeanClassLoaderAware

Message converter that uses Jackson 2.x to convert messages to and from JSON. Maps an object to a BytesMessage, or to a TextMessage if the targetType is set to MessageType#TEXT. Converts from a TextMessage or BytesMessage to an object.

It customizes Jackson's default properties with the following ones:

Compatible with Jackson 2.6 and higher, as of Spring 4.3.

MarshallingMessageConverter

open class MarshallingMessageConverter : MessageConverter, InitializingBean

Spring JMS MessageConverter that uses a Marshaller and Unmarshaller. Marshals an object to a BytesMessage, or to a TextMessage if the targetType is set to MessageType#TEXT. Unmarshals from a TextMessage or BytesMessage to an object.

Exceptions

MessageConversionException

open class MessageConversionException : JmsException

Thrown by MessageConverter implementations when the conversion of an object to/from a javax.jms.Message fails.