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=Text) -->
transacted[ref:PROPAGATION_REQUIRED] <<< Pattern:InOnly,
Headers:{JMSXGroupID=null, JMSReplyTo=null,
JMSMessageID=ID:7D97437F084F8E83E040650A0A1027E5, JMSPriority=1,
JMSCorrelationID=null, JMSXRecvTimestamp=1263984241614, JMSRedelivered=true,
JMSXState=0, JMSType=null, JMSExpiration=0, JMSTimestamp=1263984237832,
JMSXUserID=playliste, JMSDestination=PLAYLISTE.FURTHERELEMENTS_TEST,
JMS_OracleTimestamp=1263984237832, JMSDeliveryMode=2,
JMS_OracleDeliveryMode=2, JMS_OracleDelay=0, JMSXDeliveryCount=2},
BodyType:byte[], Body:<?xml version="1.0" encoding="UTF-8"
standalone="yes"?><Publication><sourceURL>whatson/133258748813</sourceURL><Element><dataProvider>M</dataProvider><relStartTime>0</relStartTime><duration>1340</duration><title>Unittest
record
title</title><countryOrigin>31</countryOrigin><countryConnection>0</countryConnection><musaNo>123609030081111</musaNo><side>1</side><cut>1</cut><partcut>-1</partcut><musaComplete>J</musaComplete><drProduction>J</drProduction><recordingDate>2009-08-20</recordingDate><recordLabel>Unittest
record title</recordLabel><recordTitle>Unittest record
title</recordTitle><Names><Name><name>DR
SymfoniOrkestret</name><country>7</country><role>Gruppe/Solist</role><salesArtist>N</salesArtist></Name><Name><name>Thomas
Dausgaard</name><country>7</country><role>Gruppe/Solist</role><salesArtist>J</salesArtist></Name><Name><name>César
Franck</name><country>10</country><role>Komponist</role><salesArtist>N</salesArtist></Name></Names></Element></Publication>]

[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=null, JMSReplyTo=null,
JMSMessageID=ID:7D97437F084F8E83E040650A0A1027E5, JMSPriority=1,
JMSCorrelationID=null, JMSXRecvTimestamp=1263984241614, JMSRedelivered=true,
JMSXState=0, JMSType=null, JMSExpiration=0, JMSTimestamp=1263984237832,
JMSXUserID=playliste, JMSDestination=PLAYLISTE.FURTHERELEMENTS_TEST,
JMS_OracleTimestamp=1263984237832, JMSDeliveryMode=2,
JMS_OracleDeliveryMode=2, JMS_OracleDelay=0, JMSXDeliveryCount=2},
BodyType:byte[], Body:<?xml version="1.0" encoding="UTF-8"
standalone="yes"?><Publication><sourceURL>whatson/133258748813</sourceURL><Element><dataProvider>M</dataProvider><relStartTime>0</relStartTime><duration>1340</duration><title>Unittest
record
title</title><countryOrigin>31</countryOrigin><countryConnection>0</countryConnection><musaNo>123609030081111</musaNo><side>1</side><cut>1</cut><partcut>-1</partcut><musaComplete>J</musaComplete><drProduction>J</drProduction><recordingDate>2009-08-20</recordingDate><recordLabel>Unittest
record title</recordLabel><recordTitle>Unittest record
title</recordTitle><Names><Name><name>DR
SymfoniOrkestret</name><country>7</country><role>Gruppe/Solist</role><salesArtist>N</salesArtist></Name><Name><name>Thomas
Dausgaard</name><country>7</country><role>Gruppe/Solist</role><salesArtist>J</salesArtist></Name><Name><name>César
Franck</name><country>10</country><role>Komponist</role><salesArtist>N</salesArtist></Name></Names></Element></Publication>]


Claus Ibsen-2 wrote:
> 
> On Wed, Jan 20, 2010 at 9:52 AM, preben <p...@dr.dk> wrote:
>>
>> Hi
>>
>> I'm trying to create a auditservice using a wiretap.
>>
>> eg.
>>        <camel:route trace="true" id="RapNotificationRoute">
>>                        <camel:from
>> uri="oracleQueue:queue:FURTHERELEMENTS_TEST?jmsMessageType=Text"/>
>>                        <camel:transacted ref="PROPAGATION_REQUIRED"/>
>>                        <camel:wireTap uri="seda:audit"/>
>>                        <camel:to uri="mock:result"/>
>>                </camel:route>
>>
>>                <camel:route id="AuditRoute">
>>                        <camel:from uri="seda:audit"/>
>>                        <camel:bean ref="auditMessageDAO" method="audit"/>
>>                </camel:route>
>>
>> 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-tp27238444p27238444.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.

Reply via email to