Package org.apache.activemq
Class MessageTransformerSupport
java.lang.Object
org.apache.activemq.MessageTransformerSupport
- All Implemented Interfaces:
MessageTransformer
A useful base class for message transformers.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
copyProperties
(jakarta.jms.Message fromMessage, jakarta.jms.Message toMesage) Copies the standard JMS and user defined properties from the givem message to the specified messageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.activemq.MessageTransformer
consumerTransform, producerTransform
-
Constructor Details
-
MessageTransformerSupport
public MessageTransformerSupport()
-
-
Method Details
-
copyProperties
protected void copyProperties(jakarta.jms.Message fromMessage, jakarta.jms.Message toMesage) throws jakarta.jms.JMSException Copies the standard JMS and user defined properties from the givem message to the specified message- Parameters:
fromMessage
- the message to take the properties fromtoMesage
- the message to add the properties to- Throws:
jakarta.jms.JMSException
-