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