]
William DeCoste closed EJBTHREE-827.
------------------------------------
Fix Version/s: AS 4.2.1.GA
Resolution: Duplicate Issue
creating timers inside start() creates duplicate timers.
--------------------------------------------------------
Key: EJBTHREE-827
URL:
http://jira.jboss.com/jira/browse/EJBTHREE-827
Project: EJB 3.0
Issue Type: Bug
Affects Versions: EJB 3.0 RC9 - FD
Environment: Windows 2000, JBoss 4.0.5 (jems installer), Java 1.5
Reporter: David Owens
Assigned To: William DeCoste
Fix For: AS 4.2.1.GA
Attachments: SimpleTimer.zip
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: