99 means that it is the last of the loadonstartups to run, you hope.

Get your servlet to create its own thread rather than sleeping the current
one and all should be OK
----- Original Message -----
From: "Cato, Christopher" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 08, 2002 3:14 PM
Subject: LoadOnStartup woes


> I have a servlet that checks and distributes email. I need it to run on
> startup. So I configure tomcat to run it on startup. The servlet starts a
> thread, does it's thing and then sleeps again. Now, I marked the servlet
to
> run as number 99 (effectively last i hope) in the LoadOnStartup entry.
>
> Problem is, tomcat never gets to start the http listener as the thread in
my
> servlet obviously puts it all to sleep before tomcat reaches that part.
How
> can I avoid this and still have the servlet do its thing?
>
> /Christopher
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to