Class MappingJackson2MessageConverter

java.lang.Object
org.springframework.jms.support.converter.MappingJackson2MessageConverter
All Implemented Interfaces:
Aware, BeanClassLoaderAware, MessageConverter, SmartMessageConverter

public class MappingJackson2MessageConverter extends Object implements 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:

Since:
3.1.4
Author:
Mark Pollack, Dave Syer, Juergen Hoeller, Stephane Nicoll