Re: ActiveMQ Component: Stop route when no more messages are being received

2013-06-18 Thread Okello Nelson
Thanks Claus, But the exchange.getContext().getInflightRepository.size(routeName) gives me some unpredictable stats. May be I haven't understood it well. The workaround I used is: I wrote a custom stats collector which I wire in the routes of interest. I then just query the variable containing

Re: ActiveMQ Component: Stop route when no more messages are being received

2013-06-04 Thread Claus Ibsen
You can use the inflight repository to know how many in-flight messages a route has. http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/spi/InflightRepository.html On Mon, Jun 3, 2013 at 4:24 PM, Okello Nelson cn.oke...@gmail.com wrote: Hi Guys, I've been trying to work

ActiveMQ Component: Stop route when no more messages are being received

2013-05-30 Thread Okello Nelson
Hi Guys, I'm wondering how to stop an ActiveMQ route and start another one when it's nolonger receiving exchanges. I'm thinking that I probably need to use timeouts, but I'm not sure how to proceed. I've done some research but no success so far. Anyone with a solution, please assist. Kind