org.apache.activemq
Class MessageTransformerSupport

java.lang.Object
  extended by org.apache.activemq.MessageTransformerSupport
All Implemented Interfaces:
MessageTransformer

public abstract class MessageTransformerSupport
extends Object
implements MessageTransformer

A useful base class for message transformers.


Constructor Summary
MessageTransformerSupport()
           
 
Method Summary
protected  void copyProperties(Message fromMessage, Message toMesage)
          Copies the standard JMS and user defined properties from the givem message to the specified message
 
Methods 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 Detail

MessageTransformerSupport

public MessageTransformerSupport()
Method Detail

copyProperties

protected void copyProperties(Message fromMessage,
                              Message toMesage)
                       throws 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 from
toMesage - the message to add the properties to
Throws:
JMSException


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.