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