convertAndSend
and receiveAndConvert
operations. Converts a String to a {@link javax.jms.TextMessage}, a byte array to a {@link javax.jms.BytesMessage}, a Map to a {@link javax.jms.MapMessage}, and a Serializable object to a {@link javax.jms.ObjectMessage} (or vice versa).
This converter implementation works for both JMS 1.1 and JMS 1.0.2, except when extracting a byte array from a BytesMessage. So for converting BytesMessages with a JMS 1.0.2 provider, use {@link SimpleMessageConverter102}. (As you would expect, {@link org.springframework.jms.core.JmsTemplate102}uses SimpleMessageConverter102 as default.) @author Juergen Hoeller @since 1.1 @see org.springframework.jms.core.JmsTemplate#convertAndSend @see org.springframework.jms.core.JmsTemplate#receiveAndConvert
|
|