Skip to content

Is that possible to change the application.properties property value in runtime? #1079

Answered by davsclaus
VelSankar-DT asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@VelSankar-DT
Comment options

@davsclaus
Comment options

Answer selected by davsclaus
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants