Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 57890 invoked from network); 10 Jul 2008 16:27:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jul 2008 16:27:59 -0000 Received: (qmail 43666 invoked by uid 500); 10 Jul 2008 16:27:59 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 43655 invoked by uid 500); 10 Jul 2008 16:27:59 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 43644 invoked by uid 99); 10 Jul 2008 16:27:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2008 09:27:59 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [195.69.129.177] (HELO exsmtp01.exserver.dk) (195.69.129.177) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2008 16:27:04 +0000 Received: from EXVS04.exserver.dk ([10.10.10.85]) by exsmtp01.exserver.dk with Microsoft SMTPSVC(6.0.3790.1830); Thu, 10 Jul 2008 18:25:38 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: How to avoid to lost Headers add from messages go/from activemq ? Date: Thu, 10 Jul 2008 18:26:00 +0200 Message-ID: <4C1FB9C00D24A140906239533638C4D204BD84E0@EXVS04.exserver.dk> In-Reply-To: <18385579.post@talk.nabble.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to avoid to lost Headers add from messages go/from activemq ? Thread-Index: AcjipfNr2Rw+pwIETjWiloV0MZPxQgAAylpQ From: "Claus Ibsen" To: X-OriginalArrivalTime: 10 Jul 2008 16:25:38.0091 (UTC) FILETIME=[96698FB0:01C8E2A9] X-Virus-Checked: Checked by ClamAV on apache.org Hi Charles To sum it up: - The problem is the xquery component? It does not pass through headers? Am I right? If you are able to create a small unit test that demonstrates the = bug/problem that would be great. Then someone/I am quicker to fix the = problem. You could create a JIRA ticket then we wont forget the problem. Its = relax time now. See you all tomorrow. Med venlig hilsen =20 Claus Ibsen ...................................... Silverbullet Skovsg=E5rdsv=E6nget 21 8362 H=F8rning Tlf. +45 2962 7576 Web: www.silverbullet.dk -----Original Message----- From: cmoulliard [mailto:cmoulliard@gmail.com]=20 Sent: 10. juli 2008 18:00 To: camel-user@activemq.apache.org Subject: RE: How to avoid to lost Headers add from messages go/from = activemq ? I found the error but I don't know how to solve it. So your help is = welcome I have the following route where a XQUERY component is called after a = bean. The headers are lost after calling the component XQUERY from("file") .to("bean:authenticate") .to("directA") from("direct:A") .to("bean:Save") --> Headers are always there .to("xquery:com/..../qqqq.qxuery) --> headers are lost (like me)=20 .to("activemq:queue:A") Regards, Charles cmoulliard wrote: >=20 > I continue the tests but it seems that the issue exist when we have = the > combination : bean + jms >=20 > The following tests made are conclusive >=20 > 1) bean to bean without JMS >=20 > setheader --> bean1 (display header : OK) --> bean2 (display header : = OK) >=20 > 2) from --> jms and from jms to without beans >=20 > setheader --> directA --> display header : OK through a processor --> = to > JMS --> from JMS --> display header : OK through a processor =20 >=20 >=20 >=20 > Claus Ibsen wrote: >>=20 >> Hi >>=20 >> Can you try combinations: >> - without the bean endpoints >> - without the JMS endpoints >>=20 >> To verify where the headers is lost? >>=20 >>=20 >> Med venlig hilsen >> =20 >> Claus Ibsen >> ...................................... >> Silverbullet >> Skovsg=E5rdsv=E6nget 21 >> 8362 H=F8rning >> Tlf. +45 2962 7576 >> Web: www.silverbullet.dk >>=20 >> -----Original Message----- >> From: cmoulliard [mailto:cmoulliard@gmail.com]=20 >> Sent: 10. juli 2008 15:21 >> To: camel-user@activemq.apache.org >> Subject: RE: How to avoid to lost Headers add from messages go/from >> activemq ? >>=20 >>=20 >> I have made a test with vm://localhost:61616?broker.persistent=3Dtrue = and >> the >> headers are still lost. >>=20 >>=20 >> cmoulliard wrote: >>>=20 >>> Claus, >>>=20 >>> I use : Camel 1.4-SNAPSHOT and >>> vm://localhost:61616?broker.persistent=3Dfalse >>>=20 >>> Is this feature working with "vm" because I see that the = documentation >>> that you refer to is related to "jms" queue ? >>>=20 >>> Regards, >>>=20 >>> Charles >>>=20 >>>=20 >>> Claus Ibsen wrote: >>>>=20 >>>> Hi >>>>=20 >>>> 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. >>>>=20 >>>> See the wiki that has been updated with information regarding >>>> restrictions to headers: >>>> http://activemq.apache.org/camel/jms.html=20 >>>>=20 >>>> For example header values must be simple types or primitives such = as >>>> string, numbers etc. You can not send your own Objects as headers. >>>>=20 >>>>=20 >>>>=20 >>>> Med venlig hilsen >>>> =20 >>>> Claus Ibsen >>>> ...................................... >>>> Silverbullet >>>> Skovsg=E5rdsv=E6nget 21 >>>> 8362 H=F8rning >>>> Tlf. +45 2962 7576 >>>> Web: www.silverbullet.dk >>>>=20 >>>> -----Original Message----- >>>> From: cmoulliard [mailto:cmoulliard@gmail.com]=20 >>>> Sent: 10. juli 2008 14:30 >>>> To: camel-user@activemq.apache.org >>>> Subject: How to avoid to lost Headers add from messages go/from >>>> activemq >>>> ? >>>>=20 >>>>=20 >>>> Hi, >>>>=20 >>>> How can we avoid to lost headers when messages go to/from a = ActiveMq ? >>>>=20 >>>> e.g. >>>>=20 >>>> from("") >>>> .setHeader("God", myGodIs) >>>> .to("direct:A") >>>>=20 >>>> from("direct:A") >>>> .to("bean:doWhatYouWant") --> the key "God" is there >>>> .to("activeMq:queue:myqueue") >>>>=20 >>>> from("activeMq:queue:myqueue") >>>> .to("bean:dontDoWhatYouWant") --> the key "God" is lost >>>>=20 >>>> Is there a trick to define a header as a global header and can be = found >>>> from >>>> any endpoint ? >>>>=20 >>>> Regards, >>>>=20 >>>> Charles >>>> --=20 >>>> View this message in context: >>>> = http://www.nabble.com/How-to-avoid-to-lost-Headers-add-from-messages-go-f= rom-activemq---tp18381854s22882p18381854.html >>>> Sent from the Camel - Users mailing list archive at Nabble.com. >>>>=20 >>>>=20 >>>>=20 >>>=20 >>>=20 >>=20 >> --=20 >> View this message in context: >> = http://www.nabble.com/How-to-avoid-to-lost-Headers-add-from-messages-go-f= rom-activemq---tp18381854s22882p18382835.html >> Sent from the Camel - Users mailing list archive at Nabble.com. >>=20 >>=20 >>=20 >=20 >=20 --=20 View this message in context: = http://www.nabble.com/How-to-avoid-to-lost-Headers-add-from-messages-go-f= rom-activemq---tp18381854s22882p18385579.html Sent from the Camel - Users mailing list archive at Nabble.com.