|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.client.jms.JMSXMLMessageConverter
public class JMSXMLMessageConverter
Converts messaging objects to an XML representation that can be sent over JMS. This class is not meant to be used by clients of this package.
| Constructor Summary | |
|---|---|
JMSXMLMessageConverter()
Creates an instance. |
|
| Method Summary | |
|---|---|
Object |
fromMessage(Message message)
Converts a JMS Message to a messaging object. |
Message |
toMessage(Object inObject,
Session session)
Converts a messaging object to a JMS Message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JMSXMLMessageConverter()
throws JAXBException
JAXBException - if there were errors initializing the
XML marshalling / unmarshalling system.| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||