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.....

/je

On Oct 2, 2010, at 9:34 PM, Willem Jiang (JIRA) wrote:

> 
>    [ 
> https://issues.apache.org/activemq/browse/CAMEL-3180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=62283#action_62283
>  ] 
> 
> 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: https://issues.apache.org/activemq/browse/CAMEL-3180
>>            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 Exchange
> 
> -- 
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
> 

Johan Edstrom

[email protected]

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





Reply via email to