Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-2153

Timer "creation" should not fail if the schedule expression doesn't have a future timeout

    XMLWordPrintable

Details

    • timerservice-mk2:1.0.0-alpha-8

    Description

      Currently a calendar timer being created out of a ScheduleExpression which doesn't have any future timeouts, fails with:

      java.lang.IllegalArgumentException: No timeout in future from now Wed Aug 18 19:59:56 SGT 2010 Invalid schedule expression: javax.ejb.ScheduleExpression@4803581
      at org.jboss.ejb3.timerservice.mk2.TimerServiceImpl.createCalendarTimer(TimerServiceImpl.java:433)
      at org.jboss.ejb3.timerservice.mk2.TimerServiceImpl.createCalendarTimer(TimerServiceImpl.java:166)
      at org.jboss.ejb3.timerservice.mk2.TimerServiceImpl.createCalendarTimer(TimerServiceImpl.java:154)

      We shouldn't be failing the timer creation for such schedules. Instead, the timer creation must pass and any invocations on getNextTimeout() or other such methods should throw an exception as mandated by the spec.

      Attachments

        Activity

          People

            jaikiran Jaikiran Pai (Inactive)
            jaikiran Jaikiran Pai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: