Rather than creating a class that extends Thread you should create a
class that implements Runnable and construct a new Thread using your
Runnable. You'd extend Thread if you were adding some extended
functionality to the Thread class, otherwise use Runnable. 
 
 
>>>[EMAIL PROTECTED] 01/03 10:11 am >>> 
 
Hi, 
 
 
I'd like to check if it a good way to implement user's notifications 
 
using Thread object? 
 
 
What I would like to do is to have a singleton object (extends 
 
Thread) that will wake up every minute and do something( let's say 
 
go to data base, take to another 3rd-party system, etc) and once the 
 
condition met will populate static  variable in another class which 
 
will inform ( display in JSP) ALL users about THAT event ? 
 
 
Thanks, 
 
Mark. 
 
 
 
 
__________________________________ 
 
Do you Yahoo!? 
 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
 
http://info.mail.yahoo.com/mail_250 
 
 
--------------------------------------------------------------------- 
 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
 
For additional commands, e-mail: [EMAIL PROTECTED] 
 

Reply via email to