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:
- org.apache.activemq.MessageTransformer
public class OXMMessageTransformer
- extends AbstractXMLMessageTransformer
Transforms object messages to text messages and vice versa using Spring OXM.
|
Method Summary |
org.springframework.oxm.support.AbstractMarshaller |
getMarshaller()
|
protected String |
marshall(javax.jms.Session session,
javax.jms.ObjectMessage objectMessage)
Marshalls the Object in the ObjectMessage to a string using XML
encoding |
void |
setMarshaller(org.springframework.oxm.support.AbstractMarshaller marshaller)
|
protected Object |
unmarshall(javax.jms.Session session,
javax.jms.TextMessage textMessage)
Unmarshalls the XML encoded message in the TextMessage to an
Object |
| Methods inherited from class org.apache.activemq.MessageTransformerSupport |
copyProperties |
| 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.support.AbstractMarshaller getMarshaller()
setMarshaller
public void setMarshaller(org.springframework.oxm.support.AbstractMarshaller marshaller)
marshall
protected String marshall(javax.jms.Session session,
javax.jms.ObjectMessage objectMessage)
throws javax.jms.JMSException
- Marshalls the Object in the
ObjectMessage to a string using XML
encoding
- Specified by:
marshall in class AbstractXMLMessageTransformer
- Throws:
javax.jms.JMSException
unmarshall
protected Object unmarshall(javax.jms.Session session,
javax.jms.TextMessage textMessage)
throws javax.jms.JMSException
- Unmarshalls the XML encoded message in the
TextMessage to an
Object
- Specified by:
unmarshall in class AbstractXMLMessageTransformer
- Throws:
javax.jms.JMSException
Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.