You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "James Strachan (JIRA)" <ji...@apache.org> on 2008/11/03 19:23:05 UTC

[jira] Created: (CAMEL-1048) allow routes to easily be enabled/disabled based on an external predicate such as queue size

allow routes to easily be enabled/disabled based on an external predicate such as queue size
--------------------------------------------------------------------------------------------

                 Key: CAMEL-1048
                 URL: https://issues.apache.org/activemq/browse/CAMEL-1048
             Project: Apache Camel
          Issue Type: New Feature
            Reporter: James Strachan
             Fix For: 2.0.0


For example we may want to do this route...

{code}
<route>
  <requires>
    <el>${broker2.queueSize('AnotherQueue') == 0}</el>
  </requires>
  <from uri="broker1:MyQueue"/>
  <to uri="broker2:AnotherQueue"/>
</route>
{code}

i.e. only implement a specific route while some predicate is true (e.g. only route while a condition is met; disable when its not met).



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1048) allow routes to easily be enabled/disabled based on an external predicate such as queue size

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

Claus Ibsen commented on CAMEL-1048:
------------------------------------

Added an example
camel-example-route-throttling

trunk: 830901.

> allow routes to easily be enabled/disabled based on an external predicate such as queue size
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1048
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1048
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: James Strachan
>            Assignee: Claus Ibsen
>             Fix For: 2.1.0
>
>
> For example we may want to do this route...
> {code}
> <route>
>   <requires>
>     <el>${broker2.queueSize('AnotherQueue') == 0}</el>
>   </requires>
>   <from uri="broker1:MyQueue"/>
>   <to uri="broker2:AnotherQueue"/>
> </route>
> {code}
> i.e. only implement a specific route while some predicate is true (e.g. only route while a condition is met; disable when its not met).
> Maybe we need to allow endpoints to define if they are ready yet? e.g. only send to a certain queue if its got capacity?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-1048) allow routes to easily be enabled/disabled based on an external predicate such as queue size

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

Claus Ibsen resolved CAMEL-1048.
--------------------------------

    Resolution: Fixed

> allow routes to easily be enabled/disabled based on an external predicate such as queue size
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1048
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1048
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: James Strachan
>            Assignee: Claus Ibsen
>             Fix For: 2.1.0
>
>
> For example we may want to do this route...
> {code}
> <route>
>   <requires>
>     <el>${broker2.queueSize('AnotherQueue') == 0}</el>
>   </requires>
>   <from uri="broker1:MyQueue"/>
>   <to uri="broker2:AnotherQueue"/>
> </route>
> {code}
> i.e. only implement a specific route while some predicate is true (e.g. only route while a condition is met; disable when its not met).
> Maybe we need to allow endpoints to define if they are ready yet? e.g. only send to a certain queue if its got capacity?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1048) allow routes to easily be enabled/disabled based on an external predicate such as queue size

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

Claus Ibsen commented on CAMEL-1048:
------------------------------------

See discussion at
http://www.nabble.com/Discussion---Route-Policy-feature-in-Camel-2.1-td26090277.html

> allow routes to easily be enabled/disabled based on an external predicate such as queue size
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1048
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1048
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: James Strachan
>            Assignee: Claus Ibsen
>             Fix For: 2.1.0
>
>
> For example we may want to do this route...
> {code}
> <route>
>   <requires>
>     <el>${broker2.queueSize('AnotherQueue') == 0}</el>
>   </requires>
>   <from uri="broker1:MyQueue"/>
>   <to uri="broker2:AnotherQueue"/>
> </route>
> {code}
> i.e. only implement a specific route while some predicate is true (e.g. only route while a condition is met; disable when its not met).
> Maybe we need to allow endpoints to define if they are ready yet? e.g. only send to a certain queue if its got capacity?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (CAMEL-1048) allow routes to easily be enabled/disabled based on an external predicate such as queue size

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

Claus Ibsen edited comment on CAMEL-1048 at 11/2/09 3:00 AM:
-------------------------------------------------------------

Add documentation to the wiki and release notes *DONE*

      was (Author: davsclaus):
    *TODO:* Add documentation to the wiki and release notes
  
> allow routes to easily be enabled/disabled based on an external predicate such as queue size
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1048
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1048
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: James Strachan
>            Assignee: Claus Ibsen
>             Fix For: 2.1.0
>
>
> For example we may want to do this route...
> {code}
> <route>
>   <requires>
>     <el>${broker2.queueSize('AnotherQueue') == 0}</el>
>   </requires>
>   <from uri="broker1:MyQueue"/>
>   <to uri="broker2:AnotherQueue"/>
> </route>
> {code}
> i.e. only implement a specific route while some predicate is true (e.g. only route while a condition is met; disable when its not met).
> Maybe we need to allow endpoints to define if they are ready yet? e.g. only send to a certain queue if its got capacity?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1048) allow routes to easily be enabled/disabled based on an external predicate such as queue size

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

Claus Ibsen commented on CAMEL-1048:
------------------------------------

Now you can manage the policy from JMX

trunk: 831859.

> allow routes to easily be enabled/disabled based on an external predicate such as queue size
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1048
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1048
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: James Strachan
>            Assignee: Claus Ibsen
>             Fix For: 2.1.0
>
>
> For example we may want to do this route...
> {code}
> <route>
>   <requires>
>     <el>${broker2.queueSize('AnotherQueue') == 0}</el>
>   </requires>
>   <from uri="broker1:MyQueue"/>
>   <to uri="broker2:AnotherQueue"/>
> </route>
> {code}
> i.e. only implement a specific route while some predicate is true (e.g. only route while a condition is met; disable when its not met).
> Maybe we need to allow endpoints to define if they are ready yet? e.g. only send to a certain queue if its got capacity?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1048) allow routes to easily be enabled/disabled based on an external predicate such as queue size

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

Claus Ibsen commented on CAMEL-1048:
------------------------------------

Renamed the throttler as we should add another throttler in the future for the messages per time unit style.

trunk: 832342.

> allow routes to easily be enabled/disabled based on an external predicate such as queue size
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1048
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1048
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: James Strachan
>            Assignee: Claus Ibsen
>             Fix For: 2.1.0
>
>
> For example we may want to do this route...
> {code}
> <route>
>   <requires>
>     <el>${broker2.queueSize('AnotherQueue') == 0}</el>
>   </requires>
>   <from uri="broker1:MyQueue"/>
>   <to uri="broker2:AnotherQueue"/>
> </route>
> {code}
> i.e. only implement a specific route while some predicate is true (e.g. only route while a condition is met; disable when its not met).
> Maybe we need to allow endpoints to define if they are ready yet? e.g. only send to a certain queue if its got capacity?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1048) allow routes to easily be enabled/disabled based on an external predicate such as queue size

Posted by "Vadim Chekan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47035#action_47035 ] 

Vadim Chekan commented on CAMEL-1048:
-------------------------------------

Another use-case: listen to a control queue and start/stop route:
{code}
from control_queue
case when xpath "/headers/message_type"='"stop"
   el: ${routes["route_a"].stop}
case when xpath "/headers/message_type"='"start"
   el: ${routes["route_a"].start}
{code}

> allow routes to easily be enabled/disabled based on an external predicate such as queue size
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1048
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1048
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: James Strachan
>             Fix For: 2.0.0
>
>
> For example we may want to do this route...
> {code}
> <route>
>   <requires>
>     <el>${broker2.queueSize('AnotherQueue') == 0}</el>
>   </requires>
>   <from uri="broker1:MyQueue"/>
>   <to uri="broker2:AnotherQueue"/>
> </route>
> {code}
> i.e. only implement a specific route while some predicate is true (e.g. only route while a condition is met; disable when its not met).
> Maybe we need to allow endpoints to define if they are ready yet? e.g. only send to a certain queue if its got capacity?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1048) allow routes to easily be enabled/disabled based on an external predicate such as queue size

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

Claus Ibsen commented on CAMEL-1048:
------------------------------------

*TODO:* Add documentation to the wiki and release notes

> allow routes to easily be enabled/disabled based on an external predicate such as queue size
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1048
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1048
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: James Strachan
>            Assignee: Claus Ibsen
>             Fix For: 2.1.0
>
>
> For example we may want to do this route...
> {code}
> <route>
>   <requires>
>     <el>${broker2.queueSize('AnotherQueue') == 0}</el>
>   </requires>
>   <from uri="broker1:MyQueue"/>
>   <to uri="broker2:AnotherQueue"/>
> </route>
> {code}
> i.e. only implement a specific route while some predicate is true (e.g. only route while a condition is met; disable when its not met).
> Maybe we need to allow endpoints to define if they are ready yet? e.g. only send to a certain queue if its got capacity?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1048) allow routes to easily be enabled/disabled based on an external predicate such as queue size

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

Claus Ibsen commented on CAMEL-1048:
------------------------------------

And how should the Java DSL syntax be?

We could have requires prelude the from.
{code}
require().el("${broker2.queueSize('AnotherQueue') == 0")
.from("broker1:MyQueue").to("broker2:AnotherQueue");
{code}

> allow routes to easily be enabled/disabled based on an external predicate such as queue size
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1048
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1048
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: James Strachan
>             Fix For: 2.2.0
>
>
> For example we may want to do this route...
> {code}
> <route>
>   <requires>
>     <el>${broker2.queueSize('AnotherQueue') == 0}</el>
>   </requires>
>   <from uri="broker1:MyQueue"/>
>   <to uri="broker2:AnotherQueue"/>
> </route>
> {code}
> i.e. only implement a specific route while some predicate is true (e.g. only route while a condition is met; disable when its not met).
> Maybe we need to allow endpoints to define if they are ready yet? e.g. only send to a certain queue if its got capacity?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CAMEL-1048) allow routes to easily be enabled/disabled based on an external predicate such as queue size

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

Claus Ibsen reassigned CAMEL-1048:
----------------------------------

    Assignee: Claus Ibsen

> allow routes to easily be enabled/disabled based on an external predicate such as queue size
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1048
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1048
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: James Strachan
>            Assignee: Claus Ibsen
>             Fix For: 2.2.0
>
>
> For example we may want to do this route...
> {code}
> <route>
>   <requires>
>     <el>${broker2.queueSize('AnotherQueue') == 0}</el>
>   </requires>
>   <from uri="broker1:MyQueue"/>
>   <to uri="broker2:AnotherQueue"/>
> </route>
> {code}
> i.e. only implement a specific route while some predicate is true (e.g. only route while a condition is met; disable when its not met).
> Maybe we need to allow endpoints to define if they are ready yet? e.g. only send to a certain queue if its got capacity?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1048) allow routes to easily be enabled/disabled based on an external predicate such as queue size

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

Claus Ibsen commented on CAMEL-1048:
------------------------------------

What is needed is also a background task that can run and enable/disable the routes depending on the predicate.

For example we dont want a event driven consumer to be active and consume an incoming message to only find out the predicate was false.

> allow routes to easily be enabled/disabled based on an external predicate such as queue size
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1048
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1048
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: James Strachan
>             Fix For: 2.2.0
>
>
> For example we may want to do this route...
> {code}
> <route>
>   <requires>
>     <el>${broker2.queueSize('AnotherQueue') == 0}</el>
>   </requires>
>   <from uri="broker1:MyQueue"/>
>   <to uri="broker2:AnotherQueue"/>
> </route>
> {code}
> i.e. only implement a specific route while some predicate is true (e.g. only route while a condition is met; disable when its not met).
> Maybe we need to allow endpoints to define if they are ready yet? e.g. only send to a certain queue if its got capacity?

-- 
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-1048) allow routes to easily be enabled/disabled based on an external predicate such as queue size

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

Work on CAMEL-1048 started by Claus Ibsen.

> allow routes to easily be enabled/disabled based on an external predicate such as queue size
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1048
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1048
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: James Strachan
>            Assignee: Claus Ibsen
>             Fix For: 2.1.0
>
>
> For example we may want to do this route...
> {code}
> <route>
>   <requires>
>     <el>${broker2.queueSize('AnotherQueue') == 0}</el>
>   </requires>
>   <from uri="broker1:MyQueue"/>
>   <to uri="broker2:AnotherQueue"/>
> </route>
> {code}
> i.e. only implement a specific route while some predicate is true (e.g. only route while a condition is met; disable when its not met).
> Maybe we need to allow endpoints to define if they are ready yet? e.g. only send to a certain queue if its got capacity?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-1048) allow routes to easily be enabled/disabled based on an external predicate such as queue size

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

Claus Ibsen updated CAMEL-1048:
-------------------------------

    Fix Version/s:     (was: 2.0.0)
                   2.1.0

> allow routes to easily be enabled/disabled based on an external predicate such as queue size
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1048
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1048
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: James Strachan
>             Fix For: 2.1.0
>
>
> For example we may want to do this route...
> {code}
> <route>
>   <requires>
>     <el>${broker2.queueSize('AnotherQueue') == 0}</el>
>   </requires>
>   <from uri="broker1:MyQueue"/>
>   <to uri="broker2:AnotherQueue"/>
> </route>
> {code}
> i.e. only implement a specific route while some predicate is true (e.g. only route while a condition is met; disable when its not met).
> Maybe we need to allow endpoints to define if they are ready yet? e.g. only send to a certain queue if its got capacity?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1048) allow routes to easily be enabled/disabled based on an external predicate such as queue size

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

Claus Ibsen commented on CAMEL-1048:
------------------------------------

First cut committed: 830861.

> allow routes to easily be enabled/disabled based on an external predicate such as queue size
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1048
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1048
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: James Strachan
>            Assignee: Claus Ibsen
>             Fix For: 2.1.0
>
>
> For example we may want to do this route...
> {code}
> <route>
>   <requires>
>     <el>${broker2.queueSize('AnotherQueue') == 0}</el>
>   </requires>
>   <from uri="broker1:MyQueue"/>
>   <to uri="broker2:AnotherQueue"/>
> </route>
> {code}
> i.e. only implement a specific route while some predicate is true (e.g. only route while a condition is met; disable when its not met).
> Maybe we need to allow endpoints to define if they are ready yet? e.g. only send to a certain queue if its got capacity?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-1048) allow routes to easily be enabled/disabled based on an external predicate such as queue size

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

Claus Ibsen updated CAMEL-1048:
-------------------------------

    Fix Version/s:     (was: 2.2.0)
                   2.1.0

> allow routes to easily be enabled/disabled based on an external predicate such as queue size
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1048
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1048
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: James Strachan
>            Assignee: Claus Ibsen
>             Fix For: 2.1.0
>
>
> For example we may want to do this route...
> {code}
> <route>
>   <requires>
>     <el>${broker2.queueSize('AnotherQueue') == 0}</el>
>   </requires>
>   <from uri="broker1:MyQueue"/>
>   <to uri="broker2:AnotherQueue"/>
> </route>
> {code}
> i.e. only implement a specific route while some predicate is true (e.g. only route while a condition is met; disable when its not met).
> Maybe we need to allow endpoints to define if they are ready yet? e.g. only send to a certain queue if its got capacity?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1048) allow routes to easily be enabled/disabled based on an external predicate such as queue size

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

Claus Ibsen commented on CAMEL-1048:
------------------------------------

Added example wiki documentation *DONE*

> allow routes to easily be enabled/disabled based on an external predicate such as queue size
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1048
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1048
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: James Strachan
>            Assignee: Claus Ibsen
>             Fix For: 2.1.0
>
>
> For example we may want to do this route...
> {code}
> <route>
>   <requires>
>     <el>${broker2.queueSize('AnotherQueue') == 0}</el>
>   </requires>
>   <from uri="broker1:MyQueue"/>
>   <to uri="broker2:AnotherQueue"/>
> </route>
> {code}
> i.e. only implement a specific route while some predicate is true (e.g. only route while a condition is met; disable when its not met).
> Maybe we need to allow endpoints to define if they are ready yet? e.g. only send to a certain queue if its got capacity?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-1048) allow routes to easily be enabled/disabled based on an external predicate such as queue size

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

James Strachan updated CAMEL-1048:
----------------------------------

    Description: 
For example we may want to do this route...

{code}
<route>
  <requires>
    <el>${broker2.queueSize('AnotherQueue') == 0}</el>
  </requires>
  <from uri="broker1:MyQueue"/>
  <to uri="broker2:AnotherQueue"/>
</route>
{code}

i.e. only implement a specific route while some predicate is true (e.g. only route while a condition is met; disable when its not met).

Maybe we need to allow endpoints to define if they are ready yet? e.g. only send to a certain queue if its got capacity?


  was:
For example we may want to do this route...

{code}
<route>
  <requires>
    <el>${broker2.queueSize('AnotherQueue') == 0}</el>
  </requires>
  <from uri="broker1:MyQueue"/>
  <to uri="broker2:AnotherQueue"/>
</route>
{code}

i.e. only implement a specific route while some predicate is true (e.g. only route while a condition is met; disable when its not met).




> allow routes to easily be enabled/disabled based on an external predicate such as queue size
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1048
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1048
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: James Strachan
>             Fix For: 2.0.0
>
>
> For example we may want to do this route...
> {code}
> <route>
>   <requires>
>     <el>${broker2.queueSize('AnotherQueue') == 0}</el>
>   </requires>
>   <from uri="broker1:MyQueue"/>
>   <to uri="broker2:AnotherQueue"/>
> </route>
> {code}
> i.e. only implement a specific route while some predicate is true (e.g. only route while a condition is met; disable when its not met).
> Maybe we need to allow endpoints to define if they are ready yet? e.g. only send to a certain queue if its got capacity?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.