org.apache.activemq.camel.converter
Class IdentityMessageReuseConverter

java.lang.Object
  extended by org.apache.activemq.camel.converter.IdentityMessageReuseConverter
All Implemented Interfaces:
org.springframework.jms.support.converter.MessageConverter

public class IdentityMessageReuseConverter
extends Object
implements org.springframework.jms.support.converter.MessageConverter

Identity conversion, return the original ActiveMQMessage as is, useful when camel does message redelivery routing. ReadOnlyPropertes flag inverted to allow additional properties to be appended or existing properties to be modified


Constructor Summary
IdentityMessageReuseConverter()
           
 
Method Summary
 Object fromMessage(Message message)
           
 Message toMessage(Object object, Session session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityMessageReuseConverter

public IdentityMessageReuseConverter()
Method Detail

fromMessage

public Object fromMessage(Message message)
                   throws JMSException,
                          org.springframework.jms.support.converter.MessageConversionException
Specified by:
fromMessage in interface org.springframework.jms.support.converter.MessageConverter
Throws:
JMSException
org.springframework.jms.support.converter.MessageConversionException

toMessage

public Message toMessage(Object object,
                         Session session)
                  throws JMSException,
                         org.springframework.jms.support.converter.MessageConversionException
Specified by:
toMessage in interface org.springframework.jms.support.converter.MessageConverter
Throws:
JMSException
org.springframework.jms.support.converter.MessageConversionException


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.