• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
WOTimer problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • AW: WOTimer problem
      • From: Helge Staedtler <email@hidden>
  • Prev by Date: deploying webobjects on tomcat problems
  • Next by Date: Re: Beginner Webobjects Web Service Question
  • Previous by thread: deploying webobjects on tomcat problems
  • Next by thread: AW: WOTimer problem
  • Index(es):
    • Date
    • Thread