You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/10/01 11:25:41 UTC

[jira] Commented: (CAMEL-3180) Let it be easier to suspend/stop a route from an Exchange which is currently being routed, or from RoutePolicy

    [ https://issues.apache.org/activemq/browse/CAMEL-3180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=62271#action_62271 ] 

Claus Ibsen commented on CAMEL-3180:
------------------------------------

To do this you should unregister yourself from inflight before stopping the route such as
{code}
            context.getInflightRepository().remove(exchange);
            context.stopRoute("myCoolRoute");
{code}

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