The code says the send method will be invoked on 2/14/2012 at 11:30.
What about a schedule expression ?
This schedule never times out. The times keeps increasing from 0:0:0, 0:20:30, 0:20:40 and so on.
The @Timeout method won't be invoked ? (I haven't tried it yet.)
@Timeout means the time when the time matches the schedule expression.
With an increasing time, will @Timeout method be invoked ?
Creating Programmatic Timers To create a timer, the bean invokes one of the create methods of the TimerService interface. These methods allow single-action, interval, or calendar-based timers to be created.
. . .
When a programmatic timer expires (goes off), the container calls the method annotated @Timeout in the bean’s implementation class. The @Timeout method contains the business logic that handles the timed event.
Joined: Jul 29, 2012
Hi, Frit. Thanks for your reply. In Frits notes, p.87,
This code creates a timer that expires every Monday at 12 noon.
ScheduleExpression schedule = new ScheduleExpression().dayOfWeek("Mon").hour(12);
So, if I have this
Will the timer expire ? The timer will continue to increase forever.
Creator of Enthuware JWS+ V6