This content has been marked as final.
Show 4 replies
-
1. Re: design pattern for canceling an EJB3 timer
wolfc May 4, 2007 4:58 AM (in response to ajay662)messageDriveContext.getTimerService().getTimers();
Iterate until you find the right one, and cancel it. -
2. Re: design pattern for canceling an EJB3 timer
ajay662 May 4, 2007 8:12 AM (in response to ajay662)Thanks. Does it need to be done from the same MDB (class) which created the timer?
-
3. Re: design pattern for canceling an EJB3 timer
wolfc May 4, 2007 8:53 AM (in response to ajay662)Yes.
-
4. Re: design pattern for canceling an EJB3 timer
ajay662 May 4, 2007 12:19 PM (in response to ajay662)Thanks.
As I iterate through the timers and find the one that I need to cancel, is there a way to know if a @Timeout callback is in progress for that Timer object? I don't see anything on the Timer class for this.