In my Data class I am caching the records in memory with a singleton like implementation. The first request that tries to create the Data class will load cache into memory and al others use that cache.
And for the location of the database the first request to load the cache into memory will lookup the location in the suncertify.properties file and load it.
My question is would the examiner try to test the Server Mode and StandAlone modes of operations on the same machine with different locations for the database file. With my implementation only one db location is accepted.
Is it OK to assume that the location of database file would be same for both the Network client and Standalone modes of operation? If at all I lose points for this, how big is the risk?
The other option is to use different property names for the dbFileLocation like
Server
B_FILE_LOCATION and StandAlone_DB_FILE_LOCATION. This implies that I pass a parameter to my Data class implementation to specify the mode of opearation. I do not like this idea very much.
Let me know your thoughts on this.
Murali