[jboss-user] [EJB/JBoss] - Re: EJB Timer Service issue - Executes multiple times

jaikiran do-not-reply at jboss.com
Fri Mar 6 01:05:24 EST 2009


anonymous wrote :  the timer is created but the timeout method is executed multiple times. It waits for the specified duration(1 min) and again executes multiple times. is there any specific reason. 

That's because, you configured the timer to do so :)

anonymous wrote : ctx.getTimerService().createTimer(interval,interval, "Probe Health Check Timer"); 

Have a look at the javadocs of createTimer, the second parameter mentions the repeat interval. I think you want this, instead:

ctx.getTimerService().createTimer(interval, "Probe Health Check Timer"); 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215577#4215577

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4215577



More information about the jboss-user mailing list