Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8443

Add properties to route via DSL and XML, expose route properties via JMX

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.15.0
    • Component/s: camel-core, jmx
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Allow adding arbitrary String properties to a route, with .routeProperty(name, value) in Java DSL and <routeProperty name="..." value="..."/> in XML.

      Expose getProperties(), getProperty(String name) and setProperty(String name, String value) for routes in JMX.

      Our use case:
      Add documentation to route in code and show it on a graph of Camel contexts, routes and endpoints in a running system. Graph is generated from JMX data.

      This would be nice data to show on hawtio as well. Although in this case we might want to use an explicit documentation variable rather than a reserved property name.

      Route has a properties map but that's used internally. These public properties would be held in a new map: publicProperties.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              yuruki Jyrki Ruuskanen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: