[GitHub] [camel-quarkus] ppalaga commented on issue #54: camel application property routesUri is not overridden at runtime

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[GitHub] [camel-quarkus] ppalaga commented on issue #54: camel application property routesUri is not overridden at runtime

GitBox
ppalaga commented on issue #54: camel application property routesUri is not overridden at runtime
URL: https://github.com/apache/camel-quarkus/issues/54#issuecomment-523390901
 
 
   Moving `routesUris` from `BUILD_AND_RUN_TIME_FIXED` to `RUN_TIME` would make it impossible to do the build time materialization of the routes (because the RUNTIME config is simply not available at runtime). I do not think we want to do that. WDYT, @lburgazzoli?
   
   As an alternative, we could perhaps add runtime `routesUris` config option to the existing build time one. The new runtime option would have the semantics requested by @alainpham.
   
   As a workaround, we can recommend the technique used in the [core-cdi itest](https://github.com/apache/camel-quarkus/blob/master/integration-tests/core-cdi/src/main/java/org/apache/camel/quarkus/component/core/cdi/CamelApplication.java#L43). We use a path literal there, but you could make it dynamic by using a field annotated with something like `@ConfigProperty(name = "your.runtime.path")`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[hidden email]


With regards,
Apache Git Services