in the web.xml file for your context, map a servlet and use the
<load-on-startup> tag.
<servlet>
<servlet-name>ServletName</servlet-name>
<description>Description</description>
<servlet-class>fully.qualified.class.name</servlet-class>
<!-- Load this servlet at server startup time -->
<load-on-startup>1</load-on-startup>
</servlet>
be sure to define a servlet mapping as well:
<servlet-mapping>
<servlet-name>ServletName</servlet-name>
<url-pattern>/mappingName</url-pattern>
</servlet-mapping>
----Original Message Follows----
From: "Neil Wood" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: load on start-uo
Date: Mon, 26 Feb 2001 17:12:58 +0000
How do I get a servlet to load up on start-up of tomcat.
probably easy but I dont know how to?
where can i find answers to questions that are similar to this one?
Thankyou,
Neil
Neil Wood, Systems Developer, Jungle Online Ltd.
www.jungle.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]