Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 71085 invoked from network); 20 Jan 2010 12:47:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Jan 2010 12:47:09 -0000 Received: (qmail 75100 invoked by uid 500); 20 Jan 2010 12:47:08 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 75058 invoked by uid 500); 20 Jan 2010 12:47:08 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 75048 invoked by uid 99); 20 Jan 2010 12:47:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jan 2010 12:47:08 +0000 X-ASF-Spam-Status: No, hits=3.1 required=10.0 tests=FRT_ROLEX,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jan 2010 12:46:59 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NXZxF-0003Ef-Tv for users@camel.apache.org; Wed, 20 Jan 2010 04:46:37 -0800 Message-ID: <27241149.post@talk.nabble.com> Date: Wed, 20 Jan 2010 04:46:37 -0800 (PST) From: preben To: users@camel.apache.org Subject: Re: wiretap getting header value In-Reply-To: <5380c69c1001200338h1ea2d2cof9445302b960dacd@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: pras@dr.dk References: <27238444.post@talk.nabble.com> <5380c69c1001200059j46438d37gca0d90c0c96f3958@mail.gmail.com> <27239795.post@talk.nabble.com> <5380c69c1001200313o67f852e6y3d1043100c5c0a8f@mail.gmail.com> <27240209.post@talk.nabble.com> <5380c69c1001200338h1ea2d2cof9445302b960dacd@mail.gmail.com> Actually I was looking for JMSMessageID like this @Header(value=3D"JMSMessageID") String jmsMessageId, but when that didn't w= ork i changed it to @Headers Map to see if I get any values.=20 The parameter get's bound as null !! Claus Ibsen-2 wrote: >=20 > Hi >=20 > So which headers are you looking for to be in the audit bean? > You do not have any custom JMS properties, only the regular JMS headers. >=20 > And you are saying that Map instance is empty? or is it null? >=20 >=20 >=20 > On Wed, Jan 20, 2010 at 12:26 PM, preben wrote: >> >> Im using camel v. 2.1.0 Sure the 2nd route says: >> [Camel thread 0: seda://audit] 20 jan. 2010 - 12:22:09,858 INFO >> org.apache.camel.processor.interceptor.Tracer >> [42a5443b-0a62-4477-885f-c6f6c40274b1 >>> (AuditRoute) from(seda://audit= ) >> --> ref:auditMessageDAO method: audit <<< Pattern:InOnly, >> Headers:{JMSDestination=3DPLAYLISTE.FURTHERELEMENTS_TEST, >> JMS_OracleDelay=3D0, >> JMSDeliveryMode=3D2, JMSRedelivered=3Dtrue, >> JMS_OracleTimestamp=3D1263986526156, >> JMSType=3Dnull, JMSCorrelationID=3Dnull, JMSXRecvTimestamp=3D12639865298= 58, >> JMSXState=3D0, JMSXDeliveryCount=3D2, >> JMSMessageID=3DID:7D97CBE346B7CAA2E040650A0A103AC2, >> JMSTimestamp=3D1263986526156, JMSPriority=3D1, JMSXGroupID=3Dnull, >> JMS_OracleDeliveryMode=3D2, JMSXUserID=3Dplayliste, JMSExpiration=3D0, >> JMSReplyTo=3Dnull}, BodyType:byte[], Body:> encoding=3D"UTF-8" >> standalone=3D"yes"?>whatson/133258748813M01340Unittest >> record >> title31012360903008111111-1JJ2009-08-20Unittest >> record titleUnittest record >> titleDR >> SymfoniOrkestret7Gruppe/SolistNThomas >> Dausgaard7Gruppe/SolistJC=C3=A9sar >> Franck10KomponistN] >> >> >> Claus Ibsen-2 wrote: >>> >>> What does the tracer say in the 2nd route? >>> >>> camel:route id=3D"AuditRoute"> >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0>> method=3D"audit"/> >>> >>> eg from seda:audit -> auditMessageDAO >>> this is the interesting part >>> >>> BTW which version of Camel are you using? >>> >>> >>> >>> On Wed, Jan 20, 2010 at 11:49 AM, preben wrote: >>>> >>>> Hi Claus >>>> >>>> Seems that the headers are present even on the wiretap endpoint. >>>> : >>>> [DefaultMessageListenerContainer-1] 20 jan. 2010 - 11:44:01,614 INFO >>>> org.apache.camel.processor.interceptor.Tracer >>>> [ID:7D97437F084F8E83E040650A0A1027E5 >>> (RapNotificationRoute) >>>> from(oracleQueue://queue:FURTHERELEMENTS_TEST?jmsMessageType=3DText) -= -> >>>> transacted[ref:PROPAGATION_REQUIRED] <<< Pattern:InOnly, >>>> Headers:{JMSXGroupID=3Dnull, JMSReplyTo=3Dnull, >>>> JMSMessageID=3DID:7D97437F084F8E83E040650A0A1027E5, JMSPriority=3D1, >>>> JMSCorrelationID=3Dnull, JMSXRecvTimestamp=3D1263984241614, >>>> JMSRedelivered=3Dtrue, >>>> JMSXState=3D0, JMSType=3Dnull, JMSExpiration=3D0, JMSTimestamp=3D12639= 84237832, >>>> JMSXUserID=3Dplayliste, JMSDestination=3DPLAYLISTE.FURTHERELEMENTS_TES= T, >>>> JMS_OracleTimestamp=3D1263984237832, JMSDeliveryMode=3D2, >>>> JMS_OracleDeliveryMode=3D2, JMS_OracleDelay=3D0, JMSXDeliveryCount=3D2= }, >>>> BodyType:byte[], Body:>>> standalone=3D"yes"?>whatson/133258748813M0= 1340Unittest >>>> record >>>> title31012360903008111111<= partcut>-1JJ2009-08-20Unittest >>>> record titleUnittest record >>>> titleDR >>>> SymfoniOrkestret7Gruppe/Solist<= salesArtist>NThomas >>>> Dausgaard7Gruppe/SolistJC=C3=A9sar >>>> Franck10KomponistN= ] >>>> >>>> [DefaultMessageListenerContainer-1] 20 jan. 2010 - 11:44:01,614 INFO >>>> org.apache.camel.processor.interceptor.Tracer >>>> [ID:7D97437F084F8E83E040650A0A1027E5 >>> (RapNotificationRoute) >>>> transacted[ref:PROPAGATION_REQUIRED] --> wireTap(seda://audit) <<< >>>> Pattern:InOnly, Headers:{JMSXGroupID=3Dnull, JMSReplyTo=3Dnull, >>>> JMSMessageID=3DID:7D97437F084F8E83E040650A0A1027E5, JMSPriority=3D1, >>>> JMSCorrelationID=3Dnull, JMSXRecvTimestamp=3D1263984241614, >>>> JMSRedelivered=3Dtrue, >>>> JMSXState=3D0, JMSType=3Dnull, JMSExpiration=3D0, JMSTimestamp=3D12639= 84237832, >>>> JMSXUserID=3Dplayliste, JMSDestination=3DPLAYLISTE.FURTHERELEMENTS_TES= T, >>>> JMS_OracleTimestamp=3D1263984237832, JMSDeliveryMode=3D2, >>>> JMS_OracleDeliveryMode=3D2, JMS_OracleDelay=3D0, JMSXDeliveryCount=3D2= }, >>>> BodyType:byte[], Body:>>> standalone=3D"yes"?>whatson/133258748813M0= 1340Unittest >>>> record >>>> title31012360903008111111<= partcut>-1JJ2009-08-20Unittest >>>> record titleUnittest record >>>> titleDR >>>> SymfoniOrkestret7Gruppe/Solist<= salesArtist>NThomas >>>> Dausgaard7Gruppe/SolistJC=C3=A9sar >>>> Franck10KomponistN= ] >>>> >>>> >>>> Claus Ibsen-2 wrote: >>>>> >>>>> On Wed, Jan 20, 2010 at 9:52 AM, preben wrote: >>>>>> >>>>>> Hi >>>>>> >>>>>> I'm trying to create a auditservice using a wiretap. >>>>>> >>>>>> eg. >>>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 >>>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0>>>>> uri=3D"oracleQueue:queue:FURTHERELEMENTS_TEST?jmsMessageType=3DText"= /> >>>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 >>>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 >>>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 >>>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 >>>>>> >>>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 >>>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 >>>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0>>>>> method=3D"audit"/> >>>>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 >>>>>> >>>>>> The auditMessageDAO takes 2 parameters >>>>>> >>>>>> public void audit(@Body String body, @Headers Map headers) >>>>>> >>>>>> The body gets bound, but the headers parameter doesn't ?? >>>>>> Any idear how this is done best ??? >>>>>> >>>>> >>>>> Use the tracer to see if the headers are avail when you consume from >>>>> the Oracle MQ queue. It may play tricks on you :) >>>>> http://camel.apache.org/tracer >>>>> >>>>> >>>>> >>>>>> >>>>>> Thanks >>>>>> Preben >>>>>> -- >>>>>> View this message in context: >>>>>> http://old.nabble.com/wiretap-getting-header-value-tp27238444p272384= 44.html >>>>>> Sent from the Camel - Users mailing list archive at Nabble.com. >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Claus Ibsen >>>>> Apache Camel Committer >>>>> >>>>> Author of Camel in Action: http://www.manning.com/ibsen/ >>>>> Open Source Integration: http://fusesource.com >>>>> Blog: http://davsclaus.blogspot.com/ >>>>> Twitter: http://twitter.com/davsclaus >>>>> >>>>> >>>> >>>> -- >>>> View this message in context: >>>> http://old.nabble.com/wiretap-getting-header-value-tp27238444p27239795= .html >>>> Sent from the Camel - Users mailing list archive at Nabble.com. >>>> >>>> >>> >>> >>> >>> -- >>> Claus Ibsen >>> Apache Camel Committer >>> >>> Author of Camel in Action: http://www.manning.com/ibsen/ >>> Open Source Integration: http://fusesource.com >>> Blog: http://davsclaus.blogspot.com/ >>> Twitter: http://twitter.com/davsclaus >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/wiretap-getting-header-value-tp27238444p27240209.h= tml >> Sent from the Camel - Users mailing list archive at Nabble.com. >> >> >=20 >=20 >=20 > --=20 > Claus Ibsen > Apache Camel Committer >=20 > Author of Camel in Action: http://www.manning.com/ibsen/ > Open Source Integration: http://fusesource.com > Blog: http://davsclaus.blogspot.com/ > Twitter: http://twitter.com/davsclaus >=20 >=20 --=20 View this message in context: http://old.nabble.com/wiretap-getting-header-= value-tp27238444p27241149.html Sent from the Camel - Users mailing list archive at Nabble.com.