Hi,

Thanks for ur info..  we are able to run the class at startup. We changed
the org.apache.tomcat.startup.Tomcat class to start  our class. But your
idea is more intelligent. We shall try with that. 

One more help needed - want to know how we can achieve support of java
transaction service in tomcat. I know tomcat is only a servlet engine, but
still if there are any add-ons which will gives us support for java
transaction service, it will be great.

Thanks & Regards,
Sudheshna.M.


-----Original Message-----
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
ache.org]On Behalf Of Christian Mack
Sent: Monday, November 06, 2000 5:22 PM
To: '[EMAIL PROTECTED]'
Subject: RE: how to run a class on startup of tomcat ??


Hi Sudheshna

That's easy.
Just use a servlet which gets startet on tomcats startup.
In it's init() just start your Runnable.
The doXXX() methods are empty, as this servlet will never be called.

Tschau
Christian

> -----Original Message-----
> From: Sudheshna Methuku [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 06, 2000 7:25 AM
> To: [EMAIL PROTECTED]
> Cc: Subhashini Chirunomula; Marthi Nalini
> Subject: how to run a class on startup of tomcat ??
> 
> 
> Hi All,
> 
> We have a startup class which needs to be run when tomcat is 
> started. Could
> anyone pl. tell us how it is possible. The startup class is 
> not a servlet,
> it implements runnable and it in turn starts some more threads. 
> 
> Thanks,
> Sudheshna.M.
> 

Reply via email to