You can also take a look at the Log component which allows you to log
groups of exchanges based on number or based on time:
from("activemq:orders").to(
"log:com.mycompany.order?level=DEBUG&groupInterval=10000&groupDelay=60000&groupActiveOnly=false"
).to("bean:processOrder");
http://camel.apache.org/log.html
On Tue, Jul 30, 2013 at 8:23 AM, Claus Ibsen <[email protected]> wrote:
> On Tue, Jul 30, 2013 at 12:20 AM, salemi <[email protected]> wrote:
> > I like to identify the average execution time spent in Camel. I have a
> > aggregator that aggregate 10 messages before it send them out to the
> > endpoint.
> > Would EventNotifier still work?
> >
>
> It depends what and how fine grained you want to measure?
> So what do you mean by "execution time spent in Camel" ?
>
> And as Bilgin wrote you can also get a lot of stats from JMX.
>
>
>
>
> >
> >
> > -----
> > Alireza Salemi
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/best-practice-for-logging-execution-time-tp2844045p5736458.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: [email protected]
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
>
--
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta