Class SimpleMessageConverter

java.lang.Object
org.springframework.jms.support.converter.SimpleMessageConverter
All Implemented Interfaces:
MessageConverter

public class SimpleMessageConverter extends Object implements MessageConverter
A simple message converter which is able to handle TextMessages, BytesMessages, MapMessages, and ObjectMessages. Used as default conversion strategy by JmsTemplate, for convertAndSend and receiveAndConvert operations.

Converts a String to a TextMessage, a byte array to a BytesMessage, a Map to a MapMessage, and a Serializable object to a ObjectMessage (or vice versa).

Since:
1.1
Author:
Juergen Hoeller
See Also: