Hi Guys, I've been trying to work on this. Time has been hard to come by though. Having thought hard about a potential solution, i think using timer component would be the way to go. When period on the timer elpases, i retrieve the number of exchanges at the endpoints of interest.
A timer route like: from("timer://controller?fixedRate=true&period=5000").to("ref:routesManager") I retrieve exchanges count in the "routesManager" bean. Now, my problem is that i still don't know how to retrieve the count of exchanges at an endpoint. Any assistance here will be appreciated very much. BTW: I've also posted this question at stackoverflow.com ( stackoverflow.com/questions/16898646/exchanges-count-at-camel-endpoint). On May 30, 2013 4:48 PM, "Okello Nelson" <cn.oke...@gmail.com> wrote: > 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 Regards, > Okello Nelson. >