Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-868 Add support to start/stop of routes via JMX
  3. CAMEL-1048

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

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • None
    • None

    Description

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

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

      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?

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              jstrachan James Strachan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: