The snippet as i posted works as you've asked. Like I said, if you have other steps, you'll have to consider the spots where Camel expects to convert the message to an exchange body.
Calling JmsMessage#getBody will cause the JmsBinding to kick in and try to convert. If you have mapJmsMessage=false, then it won't be mapped: from JmsBinding#extractBodyFromJms: // if we are configured to not map the jms message then return it as body if (endpoint != null && !endpoint.getConfiguration().isMapJmsMessage()) { LOG.trace("Option map JMS message is false so using JMS message as body: {}", message); return message; } This means there should be no deserializing. On the other end where you try to send the message, you want to make sure Camel doesn't try to convert the original message (or serialize it) and just pass it along: from JmsBinding#makeJmsMessage: if (!jmsMessage.shouldCreateNewMessage() || force) { answer = jmsMessage.getJmsMessage(); if (!force) { <---- *we want to skip this* // answer must match endpoint type JmsMessageType type = endpoint != null ? endpoint.getConfiguration().getJmsMessageType() : null; if (type != null && answer != null) { if (type == JmsMessageType.Text) { answer = answer instanceof TextMessage ? answer : null; } else if (type == JmsMessageType.Bytes) { answer = answer instanceof BytesMessage ? answer : null; } else if (type == JmsMessageType.Map) { answer = answer instanceof MapMessage ? answer : null; } else if (type == JmsMessageType.Object) { answer = answer instanceof ObjectMessage ? answer : null; } else if (type == JmsMessageType.Stream) { answer = answer instanceof StreamMessage ? answer : null; } } } } If you want my test case, let me know and i can publish it. On Tue, Jul 30, 2013 at 7:44 AM, jduncan <jdun...@iqnavigator.com> wrote: > Actually that also does not work for object messages. Camel will still try > to deserialize the object in the body. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-route-only-dealing-with-headers-tp5736452p5736502.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta