I have a project consisting of several JSP pages and JavaBeans. There is a login front-end and DB accesses. Also, an app properties file is read in and put in a static global class for access from several pages/beans.
Q: I'm looking for a way to start the entire project up when the web server is started, including reading in the properties file and making the DB connection, BEFORE the first client logs in. The JSP pages will be precompiled into CLASS files. The beans will be given application scope.
The product may be installed on any of the popular web servers (Websphere, Weblogic, Tomcat, etc.), so the solution must be generic.
Is this possible?
PS - If a solution exists, I will increase the point value of this question for more details.