-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
camel application properties are not overridden at runtime #3116
Comments
The corresponding Camel Config is configurable at build time only as can be seen here. It very much looks like that was intentional but I have no experience with Camel on Quarkus so I can't provide any meaningful insight here |
Ok, thanks. I just discovered that there were different Configuration Root Phases. It does make sense for most of those properties to be fixed & unchangeable at run time like disable jaxb & xml, however I think that routesUris should be changeable at run time. When I configure routesUris to read a file on some file system path, the file is read dynamically during run time even with the native executable. But maybe there is something I'm missing here that would have a big impact if we make it changeable during run time. |
@alainpham yes, it makes perfectly sense. |
It's probably best to ping the author(s) of the extension to get more feedback on the questions you raised. |
@alainpham there is a property |
Thanks for the hint @lburgazzoli. I wan't so sure about what deferInitPhase really meant. The picture is becoming a bit clearer now but I still have to figure out a few things.
Many thanks. |
As I can recall, in such cases the resources are not included but they are processed at build time so the generated bytecode contains the materialized routes and there's no more need to have the original XMLs.
That make sense. We are now in the process of moving camel-quarkus in its new home ad we have a number of thing to improve, can you raise an issue there ?
|
@lburgazzoli, thanks it's clear to me now. Many thanks Edit : the newly opened issue can be found here |
Describe the bug
When using the camel extension, application properties such
quarkus.camel.servlet.url-patterns
orquarkus.camel.routes-uris
are not overridden at runtime with the native executable.Expected behavior
When overriding application variables with a config/application.properties file or environment variables. They should be taken into account by the executable.
Actual behavior
Still takes the value from the development version in resources/application.properties no matter what.
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/alainpham/quarkus-kafka-camel-servlet.git
cd quarkus-kafka-camel-servlet
docker-compose up
Configuration
# Add your application.properties here, if applicable.
Screenshots
(If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
uname -a
orver
: 3.10.0-957.21.3.el7.x86_64java -version
:The text was updated successfully, but these errors were encountered: