public class JMSXMLMessageConverter extends Object implements MessageConverter
| Constructor and Description |
|---|
JMSXMLMessageConverter()
Creates an instance.
|
public JMSXMLMessageConverter()
throws JAXBException
JAXBException - if there were errors initializing the
XML marshalling / unmarshalling system.public Object fromMessage(Message message) throws JMSException, MessageConversionException
fromMessage in interface MessageConvertermessage - the received JMS message. It should be of type
ObjectMessage.JMSException - if there were errors extracting the contents
of the JMS message.MessageConversionException - if there were errors converting
the contents of the JMS message to a messaging object.public Message toMessage(Object inObject, Session session) throws JMSException, MessageConversionException
toMessage in interface MessageConverterinObject - the message to be converted. It should either be
an order or a report.session - the JMS Session instance.JMSException - if there were errors serializing the
messaging object.MessageConversionException - if the supplied object was not
an acceptable messaging object.Copyright © 2015. All Rights Reserved.