|
Question : Disadvantages of using multiple app-configs/struts-configs<wbr />
|
|
Why do we use multiple struts-config.xml/app-config.xml files in a web application?what may be possible disadvantages of using multiple files?is it not difficult to maintain so many configs.
|
Answer : Disadvantages of using multiple app-configs/struts-configs<wbr />
|
|
I haven't seen any information, nor have I had the time to do any tests on the performance. I would guess that initially it would be a hit becuase you have more IO in loading the files, and slightly more overhead in memory once the files have been loaded. But becuase ( I believe) it loads the config files at init then it's a performance hit that you should only hit once.
I imagine that the ability to add multiple config's was more of a development advantage than a performance boost. But I doubt the hit to performance will be signifigant enough to notice. We had 12 different configs, and didn't notice any performance problems associated with that number of files.
Hope that helps.
|
|
|