On Apr 10, 2011, at 5:00 PM, Shawn Jiang wrote: > https://issues.apache.org/jira/browse/OPENEJB-1516 > > When there's no timeout method but there's schedule info for methods in EJB > either from annotation or DD. The > org.apache.openejb.core.timer.TimerServiceWrapper.getTimerService() will > always throw IllegalStateException. It's obviously wrong. > > https://issues.apache.org/jira/browse/OPENEJB-1518 > > Currently, the schedule expression for DayOfMonth list only cover single > day and simple range cases. WeekDay, day to last, Last are all valid > items for DayOfMonth values. we need to support them as below: > > 1, WeekDay style: "2nd mon, 3rd wed,1st sun" > 2, day to last style: "-3,-5" > 3, Last as element: "4, last"
When writing one of the @Schedule examples today I actually did run into some timer issues. Turns out it was both the dayOfMonth range issue and IllegalStateException issues. So I've gone ahead and checked in both those patches. A *big* thank you for those fixes. You saved my rear :) On a related note, I wonder if we properly support date ranges. I don't have the spec in front of me, but I'm pretty sure we added '1-15' syntax to mean '1 through 15'. If we didn't have the list support (i.e. ',' separated), we might want to double check ranges. -David
