public class JMSMessageConverter extends Object implements MessageConverter
| Constructor and Description |
|---|
JMSMessageConverter() |
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 trade message.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
trade message.MessageConversionException - if the supplied object was not
an acceptable trade message.Copyright © 2015. All Rights Reserved.