You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Muhammad Ichsan <ic...@gmail.com> on 2011/10/01 06:39:17 UTC
Preserving Exchange Header
I want to preserve headers of Exchange when sending to other queue. Is
it possible?
public void receiveAndForward(Exchange x) {
timer.schedule(new TimerTask() { sendTo(x, "otherQ"); }, 3000);
}
So that I can read headers of x in the following route
<route>
<from uri="amq:otherQ" />
<.... read x header />
</route>
--
~The best men are men who benefit to others
http://michsan.web.id 一緒に勉強しましょう!
Yang berkualitas memang beda rasanya!
http://rizqi-cookies.com
Re: Preserving Exchange Header
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
See the JMS page about JMS spec. implications for sending headers
http://camel.apache.org/jms
But generally headers is preserved.
On Sat, Oct 1, 2011 at 6:39 AM, Muhammad Ichsan <ic...@gmail.com> wrote:
> I want to preserve headers of Exchange when sending to other queue. Is
> it possible?
>
>
> public void receiveAndForward(Exchange x) {
> timer.schedule(new TimerTask() { sendTo(x, "otherQ"); }, 3000);
> }
>
> So that I can read headers of x in the following route
>
> <route>
> <from uri="amq:otherQ" />
> <.... read x header />
> </route>
>
> --
> ~The best men are men who benefit to others
> http://michsan.web.id 一緒に勉強しましょう!
>
> Yang berkualitas memang beda rasanya!
> http://rizqi-cookies.com
>
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/