Interface MessageConverter

All Known Subinterfaces:
SmartMessageConverter
All Known Implementing Classes:
MappingJackson2MessageConverter, MarshallingMessageConverter, MessagingMessageConverter, SimpleMessageConverter

public interface MessageConverter
Strategy interface that specifies a converter between Java objects and JMS messages.

Check out SimpleMessageConverter for a default implementation, converting between the 'standard' message payloads and JMS Message types.

Since:
1.1
Author:
Mark Pollack, Juergen Hoeller
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Convert from a JMS Message to a Java object.
    toMessage(Object object, Session session)
    Convert a Java object to a JMS Message using the supplied session to create the message object.