2

I'm using Apache Camel in my project. The routes definition looks like this:

  class RouteBuilder() {
        public void configure() {
            // populate the message queue with some messages
            from("direct:input").
             choice().
               when(body().isEqual("A")).
                 beanRef('aProcessorBean').
               otherwise().
                 beanRef('bProcessorBean').
              end().  
            to("direct:output");
        }
    };

This is very primitive example, which use only FromDefinition, ChoiceDefinition, ProcessorDefinition from org.apache.camel.model package.

In real world route could be more complicated. I would like to know how I can measure time spent in each route. Basically I think I need to monitor all XXXDefinition classes from org.apache.camel.model package. How to setup JProfiler to do so?

4

1 回答 1

1

打开会话设置并转到“过滤器设置”选项卡。删除所有默认的独占过滤器,并将项目的顶级包添加为包含过滤器。还添加org.apache.camel.model.为包容性过滤器。

于 2013-09-13T07:44:10.457 回答