daisy
daisy

Reputation: 357

properties file reload on change in server, Spring

i am using Spring 4.2.5 and jboss 7 server.

Is it possible to change in application.properties files and make server to reload changed data in application.properties file automatically on refresh without restarting server?

Please suggest on this. Any idea or steps or api to use anything to move forward.

Regards

Upvotes: 1

Views: 839

Answers (1)

kuhajeyan
kuhajeyan

Reputation: 11017

Ideal way would be use spring cloud config @EnableConfigServer. You will have separate config server pointed all the properties pointed. And a client will be able to access the properties. This allows you to change the properties on the fly in server with out need for any restart.

http://jeroenbellen.ghost.io/manage-and-reload-spring-application-properties-on-the-fly/

Upvotes: 1

Related Questions