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
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.