glassfish
  1. glassfish
  2. GLASSFISH-20673

TimerService createCalendarTimer with dayOfWeek

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.1.2_b23
    • Fix Version/s: None
    • Component/s: ejb_container
    • Labels:
      None

      Description

      I tried to programmatic start a new calendar based timer service.
      I am setting the minute(), hour(), year(),.... based on my configuration.
      Everything works fine - until I try to set the 'dayOfWeek'

      When I use the following configuration:
      minute=15
      hour=20
      dayOfWeek=1-5

      ScheduleExpression scheduerExpression = new ScheduleExpression();
      scheduerExpression.minute("15");
      scheduerExpression.hour("20);
      scheduerExpression.dayOfWeek("1-5");
      Timer timer = timerService.createCalendarTimer(scheduerExpression,
      				timerConfig);
      

      The timer runs endless!
      When I ask the timer for the scheduler info I got the following toString() result:

      ScheduleExpression [second=0;minute=15;hour=20;dayOfMonth=*;month=*;dayOfWeek=15;year=*;timezoneID=CET;start=null;end=null]
      

      And when I ask timer.getNextTimeout() I got a date in the past!?
      I can not understand what is going wrong here

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            marina vatkina
            Reporter:
            rsoika
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: