You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Jason Taylor <jt...@injesus.com> on 2000/01/06 18:08:56 UTC

Automatic Servlet Calling at startup

Hi,
Is there a way to cause Tomcat to automatically start a Servlet at startup
(we need to run a initialization Servlet before the rest of the site will
work properly).

Thanks.

Jason Taylor, Developer
jtaylor@injesus.com
770-623-4659 x303


Re: Automatic Servlet Calling at startup

Posted by James Todd <jw...@pacbell.net>.
yep ... check out the web.xml "deployment descriptor" file, details
of which can be found in the servlet 2.2 spec:

    java.sun.com/products/servlet/2.2 (i believe)

the steps boil down to:

    registering your servlet (adding it to web.xml)

    setting the "load-on-startup" marker

hope this helps,

- james

Jason Taylor wrote:

> Hi,
> Is there a way to cause Tomcat to automatically start a Servlet at startup
> (we need to run a initialization Servlet before the rest of the site will
> work properly).
>
> Thanks.
>
> Jason Taylor, Developer
> jtaylor@injesus.com
> 770-623-4659 x303
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org