camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Multi-threading query
Date Tue, 14 Jun 2011 11:47:43 GMT
On Tue, Jun 14, 2011 at 1:09 PM, woggle23 <> 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:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Twitter: davsclaus, fusenews
Author of Camel in Action:

View raw message