This week's giveaway is in the Java/Jakarta EE forum. We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line! See Java object to be around for the lifetime of Tomcat, right? If so you can just create a singleton in an instance in any of your Servlet.init() methods and make sure that servlet is loaded on startup. Kyle ------------------ Kyle Brown, Author of Enterprise Java (tm) Programming with IBM Websphere See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
Like I always say - every servlet / jsp developer should download a copy of the API from java.sun.com You will find that there is a load-on-startup tag used in the description of a jsp or servlet in the web.xml file. You can even specify the order in which servlets are loaded. Here is an example of the use: <servlet> <servlet-name>webdav</servlet-name> <servlet-class>org.apache.catalina.servlets.WebdavServlet</servlet-class> <init-param> <param-name>debug</param-name> <param-value>0</param-value> </init-param> <init-param> <param-name>listings</param-name> <param-value>true</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> Bill ------------------ author of: