This content has been marked as final.
Show 2 replies
-
1. Re: TimerBean: Only one @Timeout on SLSB?
jaikiran Sep 20, 2011 2:50 AM (in response to pi4630)Pasquale Imbemba wrote:
I've two private methdos on my SLSB, say A and B.
Both methods are annotated with @Timeout, return void, and take Timer as an argument.
You can't have more than one @Timeout method on a bean. The spec mandates that:
A bean can have at most one timeout method for handling programmatic timers
-
2. Re: TimerBean: Only one @Timeout on SLSB?
pi4630 Sep 20, 2011 3:21 AM (in response to jaikiran)Thanks for the quick reply, Jaikiran!
My book didn't note the limitation explicitly. The "workaround" then is the correct way to address different timers. Wouldn't be bad if the compiler and/or the AS would state an error when compiling/deploying.