I have an application that uses a servlet to read an intialization parameter from web.xml to locate a property file. Then serlvet creates an instance of the class that saves the file location for reading other programs as needed. This class has corresponding get and set methods.
But my question is about accessing properties: should a physical property file be read by each program as at run time or if the properties will be stored in memory instead?
Currently, properties do not change at runtime, but can this change? I have seen various alternative approaches, but not sure which is better.
thanks
Mr. Morgan
source share