You may wish to take a look at 'forceSendOriginalMessage' on the camel jms endpoint... eg:
For example, the following does what you're asking: from("jms:incoming?mapJmsMessage=false").to("jms:outgoing?forceSendOriginalMessage=true"); May have to play with the config a bit if you have other parts of your route that manipulates headers, but check to docs and you should be good to go: http://camel.apache.org/jms.html On Mon, Jul 29, 2013 at 3:00 PM, Christian Posta <christian.po...@gmail.com>wrote: > Object message is not a very good way to send payload for various reasons. > > Is your use case constrained to scenarios where ObjectMessages are being > used and cannot be changed? The more versatile choice would otherwise be > BytesMessage. > > > > > On Mon, Jul 29, 2013 at 2:20 PM, jduncan <jdun...@iqnavigator.com> wrote: > >> I have a route that listens on an ActiveMQ endpoint and only manipulates >> exchange headers. I don't care about the body of the exchange at all. >> Consequently, I don't want to have to >> marshal/unmarshal/serialize/deserialize the body at all, but just send it >> along to anything downstream. Particularly, I don't want to try and >> deserialize object messages in case I do not have the serialized class in >> my >> classpath. I have tried adding the mapJmsMessage=false property to my AMQ >> consumer, but when I do that a null body gets passed to any downstream >> routes. >> >> How can I pass along the original body without touching it at all? >> >> Thanks! >> Jared >> >> >> >> -- >> View this message in context: >> http://camel.465427.n5.nabble.com/Camel-route-only-dealing-with-headers-tp5736452.html >> Sent from the Camel - Users mailing list archive at Nabble.com. >> > > > > -- > *Christian Posta* > http://www.christianposta.com/blog > twitter: @christianposta > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta