H
hagarwal
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
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