Hi

What version of Camel are you using? Camel 1.4-SNAPSHOT has had some important 
changes in the JMS component to preserve headers send over the JMS.

See the wiki that has been updated with information regarding restrictions to 
headers:
http://activemq.apache.org/camel/jms.html 

For example header values must be simple types or primitives such as string, 
numbers etc. You can not send your own Objects as headers.



Med venlig hilsen
 
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk

-----Original Message-----
From: cmoulliard [mailto:[EMAIL PROTECTED] 
Sent: 10. juli 2008 14:30
To: [email protected]
Subject: How to avoid to lost Headers add from messages go/from activemq ?


Hi,

How can we avoid to lost headers when messages go to/from a ActiveMq ?

e.g.

from("")
.setHeader("God", myGodIs)
.to("direct:A")

from("direct:A")
.to("bean:doWhatYouWant") --> the key "God" is there
.to("activeMq:queue:myqueue")

from("activeMq:queue:myqueue")
.to("bean:dontDoWhatYouWant") --> the key "God" is lost

Is there a trick to define a header as a global header and can be found from
any endpoint ?

Regards,

Charles
-- 
View this message in context: 
http://www.nabble.com/How-to-avoid-to-lost-Headers-add-from-messages-go-from-activemq---tp18381854s22882p18381854.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to