org.apache.activemq.util.oxm
Class OXMMessageTransformer
java.lang.Object
org.apache.activemq.MessageTransformerSupport
org.apache.activemq.util.oxm.AbstractXMLMessageTransformer
org.apache.activemq.util.oxm.OXMMessageTransformer
- All Implemented Interfaces:
- MessageTransformer
public class OXMMessageTransformer
- extends AbstractXMLMessageTransformer
Transforms object messages to text messages and vice versa using OXM
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OXMMessageTransformer
public OXMMessageTransformer()
getMarshaller
public org.springframework.oxm.AbstractMarshaller getMarshaller()
setMarshaller
public void setMarshaller(org.springframework.oxm.AbstractMarshaller marshaller)
marshall
protected String marshall(Session session,
ObjectMessage objectMessage)
throws JMSException
- Marshalls the Object in the
ObjectMessage
to a string using XML
encoding
- Specified by:
marshall
in class AbstractXMLMessageTransformer
- Throws:
JMSException
unmarshall
protected Object unmarshall(Session session,
TextMessage textMessage)
throws JMSException
- Unmarshalls the XML encoded message in the
TextMessage
to an
Object
- Specified by:
unmarshall
in class AbstractXMLMessageTransformer
- Throws:
JMSException
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.