Could you share your test with us which shows your solution works? I'm wondering because in JMS there is no equivalent for attachments... If you send a message with attachments to ActiveMQ, I'm afraid you will lose your attachments...
Best, Christian On Thu, May 3, 2012 at 10:40 AM, Bernard Ligny <bernard.li...@gmail.com>wrote: > One more - and last - thing. > I've just performed some additionnal tests this morning. > > The (complete) patch you've suggested, eg: > this.originalInMessage.setBody( exchange.getIn().getBody() ); > this.originalInMessage.setHeaders( exchange.getIn().getHeaders() > ); > this.originalInMessage.setAttachments( > exchange.getIn().getAttachments() ); > is *NOT* working > > The only "always-working" solution (at least with ActiveMQ) is copying the > whole message through: > this.originalInMessage = exchange.getIn().copy(); > > So I'm finally going to keep this satisfying solution... > > <END-OF-STORY> > > Regards, > > Bernard. > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/OriginalMsg-Why-is-only-the-body-cloned-for-JMS-messages-tp5675413p5682643.html > Sent from the Camel Development mailing list archive at Nabble.com. >