Is that possible to change the application.properties property value in runtime? #1079
Answered
by
davsclaus
VelSankar-DT
asked this question in
Q&A
-
I like to change the application.properties value in runtime through the rest api. Is that possible to do? or any other alternate solution? |
Beta Was this translation helpful? Give feedback.
Answered by
davsclaus
Apr 18, 2024
Replies: 2 comments 2 replies
-
At runtime in production or during development |
Beta Was this translation helpful? Give feedback.
2 replies
-
You could try env variables https://camel.apache.org/manual/using-propertyplaceholder.html |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can plugin a custom properties source (that can load from a database) then you can use that for this property instead of application.properties.
https://camel.apache.org/manual/using-propertyplaceholder.html#_using_third_party_property_sources
However if you change the value in the database, then you need a way to restart your running Camel application to pickup the change. Or you can restart the pod if you use kubernetes.