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

Add watcher to camel:run to reload on routes xml changes

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.19.0
    • Component/s: camel-core, tooling
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Some developers would like to keep a JVM running with Camel and then be able to edit a xml file with <camelContext> or <routes> and then have a file watcher automatic detect the file change and reload the routes.

      We can have some kind of functionality of that in camel-core for 3rd party to hook into. And then add it to mvn camel:run for some apps where you can quickly bootup a Camel JVM and then scan for file changes with reload.

      Mind that this will only work for Camel routes as its not for spring <bean> or OSGi <blueprint> etc as they have their own deployment model. But with the 3rd party hooks, then this may be a way of triggering mvn camel:run to trigger a osgi blueprint reload also when it runs in pojosr mode. Or a spring boot live reload etc.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: