EDIT THE WEB.XML FILE

AND DO SOMETHING LIKE THIS

        <SERVLET>
                        <servlet-name>Example</servlet>

<sevlet-class>com.hello.servlet.Example</servlet-class>
                        <load-on-startup>1</load-on-startup>
        </SERVLET>

This will load the servlet as soon as the context is started ...

Hope this helps ...


Regards
guru

-----Original Message-----
From: Sudarson Roy Pratihar [mailto:[EMAIL PROTECTED]]
Sent: 23 May 2002 15:02
To: [EMAIL PROTECTED]
Subject: start up class in tomcat


Hi All,

Is there any way to run a class at the startup class in Tomcat ? In
weblogic, there is some kind of provision to have start up class (as well as
shut down class ). Do we have similar kind of things in Tomcat other that
having servlet load-on-startup and in the init method of the servlet method
of that particular class is called ?


Any suggestion is welcome.

TIA,
Sudarson

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to