0 Replies Latest reply on May 6, 2009 5:31 AM by Renjith Nair

    Ejb Timer problem: Timer wakes up late when set for long int

    Renjith Nair Newbie

      Hi everyone,

      We had a problem with the ejb timers waking up late (almost 2 minutes) while being set for long interval (say 1 month) . Has anyone experienced any similar lag . I searched in several forums and couldn't find any body having similar problems. When the timer is set for few minutes or hour then there is no delay but while setting it for a day causes around 10 sec delay and for longer intervals causes longer delay.

      Code setting timer is this

      final TimerService timer = sessionContext.getTimerService();
      long delay= 2592 * 1000;
      timer.createTimer(delay, new Integer(timerId));

      We are using Jboss 4.0.2 [yes we are still in stone age :) ] . Your comments are always welcome