Does that mean you can't count on your custom Camel message headers to
survive a transition to JMS?

> -----Original Message-----
> From: Claus Ibsen [mailto:claus.ib...@gmail.com]
> Sent: 08 June 2011 19:41
> To: users@camel.apache.org
> Subject: Re: Using properties or headers to persist meta information
on
> the exchange?
> 
> The JMS spec limits what can be send as JMS headers. Read more details
> on the Camel JMS wiki page. And for example in the JMS java doc.
> 
> 
> On Wed, Jun 8, 2011 at 6:36 PM, Marco Zapletal
> <marco.zaple...@gmail.com> wrote:
> > Hi,
> >
> > thanks for the quick response. Yes, I've tried this, but this opens
> up
> > another problem if you use a CXF endpoint on your route. The CXF
> endpoint
> > seems to store an instance of
> org.apache.cxf.service.model.MessageInfo on
> > the exchange, which is not serializable. This results in a runtime
> > exception, which cancels the execution of the process instance.
> >
> > regards,
> > marco
> >
> >
> > On 08.06.2011 18:26, Claus Straube wrote:
> >>
> >> Hi Marco,
> >>
> >> have you tried 'transferExchange=true' inside your JMS route? That
> could
> >> be a solution for your JMS problem.
> >>
> >> Best regards - Claus
> >>
> >> On 08.06.2011 18:23, Marco Zapletal wrote:
> >>>
> >>> Hi,
> >>>
> >>> I learned from this thread
> >>>
> >>> (http://camel.465427.n5.nabble.com/How-long-do-the-camel-headers-
> live-in-routes-td474477.html)
> >>> that one should use properties instead of headers in order to
> durable
> >>> store meta information on an exchange (acc. to one of the
postings,
> >>> headers can get lost at endpoints).
> >>>
> >>> I would like to know whether this in principle correct. If so, I
> ran
> >>> into the problem that properties seem to stripped away if an
> exchange
> >>> goes through a JMS queue. Could anyone tell me what's the
> recommended
> >>> approach to keep meta information durable on the exchange.
> >>>
> >>> thanks,
> >>> marco
> >>>
> >>
> >
> >
> 
> 
> 
> --
> Claus Ibsen
> -----------------
> FuseSource
> Email: cib...@fusesource.com
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/


Think green - keep it on the screen.

This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.


Reply via email to