Closed glassfishrobot closed 11 years ago
Reported by mvatkina
mvatkina said: Changes:
p. 329 "A timer may be cancelled by a bean before its expiration"
p. 338 "The timer creation methods return a Timer object that allows the bean timer to cancel the timer be cancelled or to obtain information about the timer prior to its cancellation and/or expiration."
"Timers returned by this method can be cancelled only by the owning bean, which is the bean that is associated with the corresponding timer"
mvatkina said: Fixed in rev 23
Was assigned to mvatkina
This issue was imported from java.net JIRA EJB_SPEC-71
Marked as fixed on Friday, December 14th 2012, 4:37:32 pm
EJB spec currently is not clear about which component can call Timer.cancel:
13.2Bean Provider's View of the Timer Service
13.2.4The TimerService Interface
13.2.6The Timer and TimerHandle Interfaces
EJB 3.2 added getAllTimers() method with the following requirement:
The spec doesn't say that a Timer object cannot be given to another component or accessed from the TimerHandle in another component. Which means that the rule for getAllTimers() method contradicts lack of restrictions in other parts of the spec.
Affected Versions
[3.2]