WOTimer problem
WOTimer problem
- Subject: WOTimer problem
- From: Miguel Arroz <email@hidden>
- Date: Fri, 16 Sep 2005 17:57:26 +0100
Hi!
I have the following method:
public void timerMethod() {
this.doSomething();
WOTimer.scheduledTimer( 5 * 1000,
this,
"timerMethod",
null,
null,
false);
}
I setup the timer using WOTimer.scheduledTimer( 10 * 1000, // 10
seconds from app startup
mailSender,
"timerMethod",
null,
null,
false);
After 10 seconds, the timer fires itself and my method is executed
and this.doSomething() run. The problem is that, after 5 seconds,
nothing happens. The timer is not rescheduled again. What's happening?
BTW, I don't want to use the repeat flag, because I want the time
(in this sample, 5 seconds) to start counting AFTER this.doSomething
finishes, and not before.
Yours
Miguel Arroz
"GUERRA E' PAZ
LIBERDADE E' ESCRAVIDAO
IGNORANCIA E' FORCA" -- 1984
Miguel Arroz
http://www.ipragma.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden