camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: OriginalMsg - Why is (only) the body cloned for JMS messages ?
Date Fri, 11 May 2012 18:25:19 GMT
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.ligny@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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message