Thanks for the reply.

It's basically a job scheduler that run in a thread. With invoking the thread in init 
method of a Dummy servlet class (which loads on startup), it's running fine. Just want 
to know if there are other ways as well like weblogic startup and shutdown classes.

Thanks and Regards,
Sudarson



-----Original Message-----
From: Christopher K. St. John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 9:35 PM
To: [EMAIL PROTECTED]
Subject: Re: start up class in tomcat


Sudarson Roy Pratihar wrote:
>
> Is there any way to run a class at the startup class in
> Tomcat ? ... other that having servlet load-on-startup and
> in the init method of the servlet method of that particular
> class is called ?
>

 Yes, but you should use load-on-startup if at all possible.
The exact method depends on why you can't use load-on-startup.
Are you trying to start an external service of some kind? Or
do you need something that will interact directly with the
objects in your webapp? The more details the better.

 Just FYI, Tomcat specific questions are on-topic for
servlet-interest, but you'll generally get better answers over
in tomcat-users (jakarta.apache.org, look for the "mailing
lists" link)


--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

___________________________________________________________________________
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