camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Multi-threading query
Date Tue, 14 Jun 2011 11:47:43 GMT
On Tue, Jun 14, 2011 at 1:09 PM, woggle23 <mattfelstead@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: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message