You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by javamonkey79 <ja...@gmail.com> on 2013/07/31 20:53:54 UTC

save message across exchanges

Is there a way to store a message across exchanges?

It seems like you should be able to put something in to the context, but I’m
not seeing anything obvious. 

For now, I’m just using a bean to save off a static reference, but this
seems sorta dirty.

Thanks in advance.




--
View this message in context: http://camel.465427.n5.nabble.com/save-message-across-exchanges-tp5736593.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: save message across exchanges

Posted by Claus Ibsen <cl...@gmail.com>.
Then use something else like a cache component. Or use a bean /
processor to store the data you want. And to get the data again when
you need.

Its a bit like the claim check EIP but across different exchanges.


On Thu, Aug 1, 2013 at 5:39 PM, javamonkey79 <ja...@gmail.com> wrote:
> The headers and properties I have tried will only persist the message across
> *that* exchange, not across *multiple* exchanges.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/save-message-across-exchanges-tp5736593p5736646.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Re: save message across exchanges

Posted by Willem Jiang <wi...@gmail.com>.
I'm not sure how do you store the headers and properties.
You can store the object instance reference into the exchange properties,
then camel will copy it for you across the exchanges.



Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/)
(English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem


On Thu, Aug 1, 2013 at 11:39 PM, javamonkey79 <ja...@gmail.com>wrote:

> The headers and properties I have tried will only persist the message
> across
> *that* exchange, not across *multiple* exchanges.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/save-message-across-exchanges-tp5736593p5736646.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: save message across exchanges

Posted by javamonkey79 <ja...@gmail.com>.
The headers and properties I have tried will only persist the message across
*that* exchange, not across *multiple* exchanges. 



--
View this message in context: http://camel.465427.n5.nabble.com/save-message-across-exchanges-tp5736593p5736646.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: save message across exchanges

Posted by Willem jiang <wi...@gmail.com>.
If you store the message into the exchange property, camel will copy the message reference across the exchange.


--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Thursday, August 1, 2013 at 3:48 AM, David Karlsen wrote:

> You could place a copy in a header or preferably a property.
> Den 31. juli 2013 20:54 skrev "javamonkey79" <javamonkey79@gmail.com (mailto:javamonkey79@gmail.com)>
> følgende:
>  
> > Is there a way to store a message across exchanges?
> >  
> > It seems like you should be able to put something in to the context, but
> > I’m
> > not seeing anything obvious.
> >  
> > For now, I’m just using a bean to save off a static reference, but this
> > seems sorta dirty.
> >  
> > Thanks in advance.
> >  
> >  
> >  
> >  
> > --
> > View this message in context:
> > http://camel.465427.n5.nabble.com/save-message-across-exchanges-tp5736593.html
> > Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).
>  




Re: save message across exchanges

Posted by David Karlsen <da...@gmail.com>.
You could place a copy in a header or preferably a property.
Den 31. juli 2013 20:54 skrev "javamonkey79" <ja...@gmail.com>
følgende:

> Is there a way to store a message across exchanges?
>
> It seems like you should be able to put something in to the context, but
> I’m
> not seeing anything obvious.
>
> For now, I’m just using a bean to save off a static reference, but this
> seems sorta dirty.
>
> Thanks in advance.
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/save-message-across-exchanges-tp5736593.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: save message across exchanges

Posted by Christian Müller <ch...@gmail.com>.
Did you had a look at Camel cache [1]?

[1] http://camel.apache.org/cache.html

Best,
Christian
-----------------

Software Integration Specialist

Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Wed, Jul 31, 2013 at 8:53 PM, javamonkey79 <ja...@gmail.com>wrote:

> Is there a way to store a message across exchanges?
>
> It seems like you should be able to put something in to the context, but
> I’m
> not seeing anything obvious.
>
> For now, I’m just using a bean to save off a static reference, but this
> seems sorta dirty.
>
> Thanks in advance.
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/save-message-across-exchanges-tp5736593.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>