Re: How to Get MBean statistics For a Route, E.g. LastExchangeCompletedTimestamp

2010-04-07 Thread Claus Ibsen
On Wed, Apr 7, 2010 at 2:29 PM, TRACK81 wrote: > > Hi Claus and thank you for the quick reply... I am using 2.2.0 and it its not > in this release. > Th curcumvent this i do as following: > > -- > List routes = camelContext.ge

Re: How to Get MBean statistics For a Route, E.g. LastExchangeCompletedTimestamp

2010-04-07 Thread TRACK81
Hi Claus and thank you for the quick reply... I am using 2.2.0 and it its not in this release. Th curcumvent this i do as following: -- List routes = camelContext.getRoutes(); for(Route route : routes) { if(route.getI

Re: How to Get MBean statistics For a Route, E.g. LastExchangeCompletedTimestamp

2010-04-07 Thread Claus Ibsen
CamelContext have a getRoute("id of the route") method. I think its in 2.2.0 also if not its in the next 2.3.0 release. In Java DSL you use .routeId("myRoute") to assign an id to a route. In Spring XML its just the id attribute on the tag. On Wed, Apr 7, 2010 at 1:42 PM, TRACK81 wrote: > > H

How to Get MBean statistics For a Route, E.g. LastExchangeCompletedTimestamp

2010-04-07 Thread TRACK81
Hi, I am fairly new to Camel and strugling to get the statistic LastExchangeCompletedTimestamp for a "specific" route. I can get the statistic by using the getRoutes().get(2) using the following code: - Li