Reputation: 1933
We have a service (java, spring-batch, tomcat) that runs on a number of environments. Each environment has to have its own configuration files, like for example the catalina properties.
Is there a way to have a centralized system, so that the service just knows on which environment it's running and it automatically gets its own properties? Maybe using a db or the active directory?
Or at least an easier way to manage these, without having to manually adjust each and every one?
Upvotes: 2
Views: 69
Reputation: 21483
Take a look at the Spring Cloud project. Specifically the Spring Cloud Config project. It exposes a config server that clients can call into to obtain environment specific configurations.
You can read more about Spring Cloud and the config server here: http://projects.spring.io/spring-cloud/
Upvotes: 1