-
Bug
-
Resolution: Duplicate
-
Major
-
EJB 3.0 RC9 - FD
-
None
-
None
Calling ctx.getTimerService().createTimer(...) within the start() method of a managed service bean creates duplicate timers. In other words, I have a bean which is both @Management and @Service which has a method which is @Timeout. In the start method of the bean (when the bean is deployed) I create a new timer. But then the method marked @Timeout is called twice. When I investigate the timers in by calling ctx.getTimerService().getTimers(), I find there are actually 2 timers with different ids, but with the exact same info.
I have attached an example. You will see the start() method getting called once when the bean is deployed, but then the timeout method getting called twice.
- duplicates
-
EJBTHREE-979 Duplicate timers created for Service with timer creation in lifecycle create()
- Closed