Timer gets stuck
- From: hagarwal@xxxxxxxxxxxxxxxxxx
- Date: 7 Feb 2006 08:50:11 -0800
I have a TimerTask that downloads e-mails from a POP service, and
processes them. I am using a Timer class with initial delay and period
of 5 seconds.
I have observed that at times, the Timer gets "stuck", as in it fails
to execute the task and then I have to restart the application for the
Timer to be working again.
I initially thought that this was because I did not specify the timeout
in the my connection to the POP service, but aren't the subsequent
executions supposed to be independant of each other, so even if one
execution is halted because of a bad POP service, the next execution
should work just fine.
Has anyone experienced this proble of the Timer getting stuck.I am
using JDK 1.4.2.
Any help will be appreciated.
Thanks
Harsh
.
- Follow-Ups:
- Re: Timer gets stuck
- From: Mike Schilling
- Re: Timer gets stuck
- From: Roedy Green
- Re: Timer gets stuck
- From: Roedy Green
- Re: Timer gets stuck
- From: iksrazal
- Re: Timer gets stuck
- From: Gordon Beaton
- Re: Timer gets stuck
- Prev by Date: Re: Digitally signing XML files
- Next by Date: Re: I hope that I'm mistaken ...
- Previous by thread: Re: ClassLoader confusion
- Next by thread: Re: Timer gets stuck
- Index(es):
Relevant Pages
|