You can also use Interceptors in Camel (see [1]), including the Tracer
interceptor ([2]). Using Tracer and JMX notifications you can see the flow
in live in JConsole for example.


[1] http://camel.apache.org/intercept.html
[2] http://camel.apache.org/tracer.html

Regards,
Stéphane


2013/2/18 Raul Kripalani <r...@evosent.com>

> You need to do nothing special, as the out-of-the-box configuration already
> collects performance stats for all processors and routes, and exposes the
> stats via JMX. Use any standard JMX client to connect to the Camel
> instrumentation. More info here: [1].
>
> One tip: make sure you assign explicit IDs to the processors and routes you
> wish to monitor. Otherwise, they will show up as "route1", "to5", etc. and
> you won't know what they correspond to.
>
> The level of granularity of stats can be configured as indicated towards
> the end of [1]. By default we are verbose.
>
> [1] http://camel.apache.org/camel-jmx.html
>
> Regards,
>
> *Raúl Kripalani*
> Apache Camel Committer
> Enterprise Architect, Program Manager, Open Source Integration specialist
> http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani
> http://blog.raulkr.net | twitter: @raulvk <http://twitter.com/raulvk>
>
> On Mon, Feb 18, 2013 at 9:18 AM, Rakesh Sharma
> <rakesh_sharm...@hotmail.com>wrote:
>
> > I would like to collect the time taken by an exchange in a route and all
> > processes in the pipeline of that route. Can it be done in a generic way
> by
> > configuring container wide interceptor?
> >
> > Thanks,
> > Rakesh
> >
> >
> >
> > --
> > View this message in context:
> >
> http://camel.465427.n5.nabble.com/Instrumenting-routes-and-processors-tp5727719.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
> >
>

Reply via email to