【发布时间】:2013-09-08 10:17:22
【问题描述】:
我在我的项目中使用 Apache Camel。路由定义如下所示:
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");
}
};
这是一个非常原始的示例,它仅使用来自org.apache.camel.model 包的FromDefinition、ChoiceDefinition、ProcessorDefinition。
在现实世界中的路线可能更复杂。我想知道如何衡量在每条路线上花费的时间。基本上我认为我需要监控所有XXXDefinition 类
org.apache.camel.model 包。如何设置 JProfiler 这样做?
【问题讨论】: