On Tue, Jun 14, 2011 at 1:09 PM, woggle23 <mattfelst...@yahoo.co.uk> wrote: > I was hoping there would be some form of mutual exclusion lock that I could > enclose the pertinent elements of my route in (within the dsl statement). >
You can use a routePolicy which can help dictate when a route is online. The Camel in Action book covers such use cases in chapter 13. > Howsoever, the alternative option you mention "detect that the 1st route is > active". By active do you "not suspended" or "is currently routing a > message"? If it's the latter, how is this achieved? I know the ServiceStatus > of a route can be checked via the camel context, but this just provides > started/stopped/suspended info. > The in-flight registry can tell you how many messages a route is currently processing. > -- > View this message in context: > http://camel.465427.n5.nabble.com/Multi-threading-query-tp4483959p4487483.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/