|
How would dynamic values help you? If the
config files are only read once at app start, then any subsequent change would
still be unavailable until after an application restart.
In your example you clearly need to use URLs and
resolve those each time, and not IP addresses. A similar method would be
used to resolve any other requirements like this, i.e. you provide a service
(RMI/web service?) that always returns the latest value, and is on a server whos
address is resolved using DNS.
I know it is often a done thing to put IP addresses
in config files, but it is very bad practice, unless you are 100% sure they are
not going to change during the applications lifetime.
John
|
- Configuration via JNI or Database Michael Mattox
- Re: Configuration via JNI or Database John Coleman
