Ideas for enterprise configuration

I am in the middle of building a very large enterprise application.

I have a master machine that drives all the other machines.

now I'm going to start writing some admin capabilities as a configuration manager.

on each server I have some services and each service has a variable that I would like to configure.

I thought maybe add an xml config file for each service (it will be read when the service starts) and when I make the config distro I will modify this XML file with new config data.

I will also need to restart the service to get the new configuration.

My question is:

Is there a better way to achieve enterprise customization ability? if my idea is good, any advice and improvement would be great.

+3


source to share


1 answer


Here's my solution:

I decided to create a config file (xml) for each service.

I am creating a FileWatcher that listens for ant change in a file.



to set the new config i used XmlSerializer.

due to FilwWatcher change, Event Change is raised and I deserialize the config file and install the new config to the service.

0


source







All Articles