Re: how to run a class on startup of tomcat ??

2000-11-15 Thread Zebadiah Kimmel
I suggest using a static block, as shown below. No matter how many servet instances are created, the static block will only execute once. = public class MyServlet { protected static DatabasePool dbPool=null; static { try { dbPool=new Datab

Re: how to run a class on startup of tomcat ??

2000-11-15 Thread Elliot Schwartz
InitializerServlet > 1 > > > Any clues what could be the problem. > > Thanks, > Sudheshna.M. > > > -Original Message- > From: > [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > ache.org]On Behalf Of Christian Mack > Sent: Monday, Nove

RE: how to run a class on startup of tomcat ??

2000-11-15 Thread Sudheshna Methuku
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

RE: how to run a class on startup of tomcat ?? & support of java transaction service in tomcat

2000-11-06 Thread Sudheshna Methuku
f 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() me

RE: how to run a class on startup of tomcat ??

2000-11-06 Thread dynacomconsulting
Christian/Sudheshna, Can U eloborate a little furhter pl.CHristian,the question and answer both are good. --- Christian Mack <[EMAIL PROTECTED]> wrote: > Hi Sudheshna > > That's easy. > Just use a servlet which gets startet on tomcats > startup. > In it's init() just start your Runnable. > The do

RE: how to run a class on startup of tomcat ??

2000-11-06 Thread Kitching Simon
ds, Simon > -Original Message- > From: Christian Mack [SMTP:[EMAIL PROTECTED]] > Sent: Monday, November 06, 2000 4:15 PM > To: '[EMAIL PROTECTED]' > Subject: RE: how to run a class on startup of tomcat ?? > > Just set the "load-on-startup" to a positive

RE: how to run a class on startup of tomcat ??

2000-11-06 Thread Christian Mack
Just set the "load-on-startup" to a positive integer for this servlet in web.xml. Tschau Christian > -Original Message- > From: Michael P. McCutcheon [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 06, 2000 2:22 PM > To: [EMAIL PROTECTED] > Subject: Re: how

Re: how to run a class on startup of tomcat ??

2000-11-06 Thread Michael P. McCutcheon
How do you get it to load the servlet automatically, without running it, when Tomcat is started? Mike - Original Message - From: "Christian Mack" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 06, 2000 3:51 AM Subject: RE: how to run a clas

RE: how to run a class on startup of tomcat ??

2000-11-06 Thread Christian Mack
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]] >