How about to try the onCompletion DSL ? [1]http://camel.apache.org/oncompletion.html
-- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Monday, November 4, 2013 at 9:26 AM, CamelTyro wrote: > How to get the real node count of a router, I used the tracer function and > get the number of nodes had been traced via > TracedRouteNodes traced = exchange.getUnitOfWork().getTracedRouteNodes(); > List<RouteNode> list = traced.getNodes(); > and the size of list is the node count traced. So if I can get the total > count of node in the route, I can check whether the route finished. > > But how can I get the total count in the router, which api I can use. Or any > other method can be use to check whether a message routed over. > > Thanks, Sincerely. > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/how-to-check-whether-a-routing-of-one-message-finished-tp5742569.html > Sent from the Camel - Users mailing list archive at Nabble.com > (http://Nabble.com).
