Of course. It's what the WIKI says... But I'm wondering why you receive an exception. It should "exclude any non-serializable objects and log it at WARN level". Do you consider to raise a JIRA if you receive an exception?
Best, Christian On Tue, Dec 6, 2011 at 6:38 AM, rspeter <[email protected]> wrote: > Hi Christian, > > The transferExchange options requires that the objects are serializable. > I tried with the options below, but there were errors. > > <inOnly uri="activemq:myqueue1?transferExchange=true" > > inheritErrorHandler="true"/> > > > java.lang.RuntimeException: org.restlet.data.Parameter > at > > org.apache.activemq.command.ActiveMQObjectMessage.storeContent(ActiveMQObjectMessage.java:111) > at > > org.apache.activemq.command.ActiveMQObjectMessage.setObject(ActiveMQObjectMessage.java:162) > at > > org.apache.activemq.ActiveMQSession.createObjectMessage(ActiveMQSession.java:380) > at > > org.apache.camel.component.jms.JmsBinding.createJmsMessage(JmsBinding.java:416) > at > > org.apache.camel.component.jms.JmsBinding.makeJmsMessage(JmsBinding.java:267) > at > > org.apache.camel.component.jms.JmsProducer$2.createMessage(JmsProducer.java:225) > .................... > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.run(Thread.java:662) > Caused by: java.io.NotSerializableException: org.restlet.data.Parameter > at > java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164) > at > java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346) > at > java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154) > at > java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330) > at java.util.HashMap.writeObject(HashMap.java:1001) > > Regards > Peter > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-message-How-long-custom-headers-and-properties-live-tp5047495p5051051.html > Sent from the Camel - Users mailing list archive at Nabble.com. >
