You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Yoav Morahg <ym...@gist.com> on 2000/07/11 18:25:55 UTC

Running a servlet on startup

Hi.

I want to run a startup servlet to set some global system properties when
Tomcat starts up. I think I need to add a <ContextInterceptor
class-"myservlet" /> to my server.xml file. Is this correct?

Also, if this is correct, if my servlet resides in
webapps/myservlets/WEB-INF/classes/myservlet.class what do I put for the
value inside the class="????" I see the example is
org.apache.tomcat.context.servletname, so what does mine map to?

Thanks a lot for your help!

-Yoav

---------------------------
Yoav Morahg
Software Engineer
Gist Communications
(212) 965-1999 xt 122
ymorahg@gist.com