Re: starting threads from servlets
- From: Thomas Schodt <spamtrap@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 29 Apr 2005 14:00:02 +0100
Fernando wrote:
public synchronized void start() {
while(true) {
try {
verificar();//checks something
sleep(60000);
} catch (InterruptedException e) {
//?
}
}
}
You do not say, but it is clear that you are extending Thread and you misunderstood how that works.
<http://java.sun.com/j2se/1.4.2/docs/api/>
BTW. How is the thread going to stop? .
- References:
- starting threads from servlets
- From: Fernando
- starting threads from servlets
- Prev by Date: Re: How do you acess a sql database from with your class?
- Next by Date: Getting Pollinate working
- Previous by thread: Re: starting threads from servlets
- Next by thread: Re: starting threads from servlets
- Index(es):
Relevant Pages
|
|