At what point in an application do you load the properties?

should it be in a servlet?
[33 byte] By [smiles78a] at [2007-10-3 5:00:29]
# 1
> should it be in a servlet?depends.
aniseeda at 2007-7-14 23:06:00 > top of Java-index,Java Essentials,Java Programming...
# 2
for a web app? sure. use the init method.%
duffymoa at 2007-7-14 23:06:00 > top of Java-index,Java Essentials,Java Programming...
# 3
It wouldn't occur to me to use a servlet to initialize a Java application. A web application, yes. But nowadays I wouldn't use a servlet to initialize properties in a web application. I would use a ServletContextListener.
DrClapa at 2007-7-14 23:06:00 > top of Java-index,Java Essentials,Java Programming...
# 4
I load them at some point before I need them.
Norweeda at 2007-7-14 23:06:00 > top of Java-index,Java Essentials,Java Programming...