Configuration parameters - In database or in config files?
Every application either accicentaly or by design, ends up having some system configuration parameters in the database and some in the configuration ( .ini or .xml or .config) files. But where are they better placed?
Pranshu Jain has written an excellent post to explain just this. Refer title of this post to read the full entry.
In a nutshell:
The config files are important in cases where certain information cannot be kept in database e.g. database connection details.
Another thing I would like to add here is the frequency with which an application needs to change these config parameters. If the frequency is very high, it is better placed in database.
[Resoure-Type: Tip; Category: Java/J2EE; XRating: 4]








0 Comments:
Post a Comment
<< Home