This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
You probably don't need a Servlet. What you're saying is you want a 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: