You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2021/05/25 13:47:00 UTC
[jira] [Commented] (CAMEL-16656) camel-core - RoutesLoader SPI -
Allow to reload on changes
[ https://issues.apache.org/jira/browse/CAMEL-16656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17351073#comment-17351073 ]
Claus Ibsen commented on CAMEL-16656:
-------------------------------------
It was this code in 2.x
https://github.com/apache/camel/blob/camel-2.25.x/camel-core/src/main/java/org/apache/camel/impl/FileWatcherReloadStrategy.java
> camel-core - RoutesLoader SPI - Allow to reload on changes
> ----------------------------------------------------------
>
> Key: CAMEL-16656
> URL: https://issues.apache.org/jira/browse/CAMEL-16656
> Project: Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Claus Ibsen
> Priority: Major
> Fix For: 3.11.0
>
>
> Add some kind of feature to the RoutesLoader SPI whether it supports re-loading, such as the file based from yaml, or xml (though its harder to reload from classpath). But from file source or over http/github it can reload.
> We had in the past some file watcher thingy that could re-load routes if the file was changed/save.
> This allows to play with kamelets, xml | yaml routes etc from vanilla camel.
> For example to change this route
> https://github.com/apache/camel-examples/tree/main/examples/kamelet-main/src/main/resources/camel
> While the app is running, then we can have a mode where camel detects changes and reload the routes.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)