tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "IvanLatysh" <IvanLat...@yahoo.ca>
Subject Re: HOW CAN I USE THREADS IN TOMCAT
Date Mon, 03 Nov 2003 15:15:47 GMT
Hello, Prince!
You wrote to "Tomcat Users List" <tomcat-user@jakarta.apache.org> on Sat, 1 Nov 2003
13:21:42 +0530:

 P> Hi,
 P>  I need to send a mail automatically at 10 minutes interval. how can
 P> i do this? how can i activate threads in tomcat?

Tomcat is a Java application, there are no difference of using threads with Tomcat or without
it.
Simply expand Thread class, and run your thread.
But don't forget to notify and kill your thread when Tomcat is shutting down.

Here is a link that might help you.
http://developer.java.sun.com/developer/codesamples/thrds.html

---
Regards
Ivan[a]yourmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message