camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: [jira] Commented: (CAMEL-3180) Let it be easier to suspend/stop a route from an Exchange which is currently being routed, or from RoutePolicy
Date Sun, 03 Oct 2010 08:01:00 GMT
On Sun, Oct 3, 2010 at 6:02 AM, Johan Edstrom <> wrote:
> Is this also something we could combine with dynamic routing?
> context.getInflightRepository().remove(exchange);
>            context.stopRoute(
> "myCoolRoute");
> Is fairly simple in the larger scope it would be really interesting to test/implement/document
> as say "a JNDI" (for lack of a better description) route. I.e a once off.
> I know I don't really see the request for this at a customer because they'll simply not
anticipate this can be done.
> Then that said, leveraging this in combination with Osgi opens doors for some really
nifty upgrades.....

Yeah you can add/remove routes dynamically at runtime. You can build
then using the RouteBuilder, the AST (the xxxDefinition from the model
packages), load from XML file etc.

The only caveat is that we currently don't have an option to instruct
it to not enlist in JMX (there is a ticket). For example a short lived
temporary route, you may not want to have it enlisted in JMX.

> /je
> On Oct 2, 2010, at 9:34 PM, Willem Jiang (JIRA) wrote:
>>    [
>> Willem Jiang commented on CAMEL-3180:
>> -------------------------------------
>> @Claus,
>> I think we need add an entry of FAQ for this, and also need to update the Chapter
13 of Camel in Action for it.
>>> Let it be easier to suspend/stop a route from an Exchange which is currently
being routed, or from RoutePolicy
>>> --------------------------------------------------------------------------------------------------------------
>>>                Key: CAMEL-3180
>>>                URL:
>>>            Project: Apache Camel
>>>         Issue Type: Improvement
>>>         Components: camel-core
>>>   Affects Versions: 2.4.0
>>>           Reporter: Claus Ibsen
>>>           Assignee: Claus Ibsen
>>>           Priority: Minor
>>>            Fix For: 2.5.0
>>> Currently you have to stop the route with a timeout to force it to stop because
the current Exchange is still in progress (its not done yet).
>>> So it should be possible to defer this stop till after the UoW is done on the
>> --
>> This message is automatically generated by JIRA.
>> -
>> You can reply to this email to add a comment to the issue online.
> Johan Edstrom
> They that can give up essential liberty to purchase a little temporary safety, deserve
neither liberty nor safety.
> Benjamin Franklin, Historical Review of Pennsylvania, 1759

Claus Ibsen
Apache Camel Committer

Author of Camel in Action:
Open Source Integration:

View raw message