camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Wiretap filter
Date Wed, 10 Feb 2010 10:03:58 GMT
On Wed, Feb 10, 2010 at 10:39 AM, Danny Kruitbosch
<danny.kruitbosch@gmail.com> wrote:
>
> Hi,
>
> I've been looking into the new wiretap in Camel 2.x and I have some
> questions about it. (Actually using camel in servicemix 4)
> I want to use it to tap the response of a request/reply web service so I'm
> not at all interested in the request.
> 1) Will the wiretap "catch" both the request and response and send it to the
> tap destination?
> 2) Is there any way to filter out the responses only? If so, how
>
> E.g. will this work:
>      <route>
>         <from uri="some_cxf_consumer"/>
>         <filter>
>            <xpath>/foo:root</xpath>
>            <wireTap uri="file:///data/esb/taps"/>
>         </filter>
>         <to uri="some_cxf_producer"/>
>      </route>
> where the XPath resolver to the root of the soap body of my response.
>
> If not how can I accomplish a "wiretap" on the responses of a request/reply
> web service.
>

You can use onCompletion which is triggered when the Exchange is done,
and hence when you have the response ready.
http://camel.apache.org/oncompletion.html

> Thanks,
>
> Danny
> --
> View this message in context: http://old.nabble.com/Wiretap-filter-tp27527108p27527108.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

Mime
View raw message