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/09/29 14:37:40 UTC

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

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.


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

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=62284#action_62284 ] 

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

Yeah I am aware that chapter 13 needs updates based on improvements in Camel 2.5 I am waiting for that chapter to be ready for AR :)

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


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

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=62285#action_62285 ] 

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

I added a FAQ
https://cwiki.apache.org/confluence/display/CAMEL/How+can+I+stop+a+route+from+a+route

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


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

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-3180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on CAMEL-3180 started by Claus Ibsen.

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


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

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-3180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-3180.
--------------------------------

    Resolution: Won't Fix

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


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

Posted by Claus Ibsen <cl...@gmail.com>.
On Sun, Oct 3, 2010 at 6:02 AM, Johan Edstrom <se...@gmail.com> 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:
>
>>
>>    [ 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
>
> joed@opennms.org
>
> 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: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

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

Posted by Johan Edstrom <se...@gmail.com>.
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

joed@opennms.org

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






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

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ 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.