Have fun I hope this helps!!! It should.

<web-app id='/'>

<servlet servlet-name='hello'
        servlet-class='test.HelloWorld'>
 <load-on-startup/>
</servlet>

</web-app>

The value is a list of 24-hour times when the servlet should be automatically executed. To run the servlet every 6 hours, you could use:


<servlet servlet-name='test.HelloWorld'> <run-at>0:00, 6:00, 12:00, 18:00</run-at> </servlet>



Frank W. Zammetti wrote:

Your just lending weight to what I said... Don't play with threads in a servlet contain unless your really sure you have to and are really sure you can do it safely :)

(I'm not sure I knew init() could be called more than once, certainly I didn't remember when I wrote that, so excellent point)



--

Dwayne A. Ghant
Application Developer
Temple University
215.204.5555
[EMAIL PROTECTED]




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



Reply via email to