users@glassfish.java.net

How to initialize EJB Timers cleanly in a cluster ?

From: <glassfish_at_javadesktop.org>
Date: Fri, 20 Feb 2009 08:05:33 PST

Hi,

my application has a number of timers that are initialized from the InitContextListener from a web application. Now that I deployed my application on a two-machine cluster for the first time, I discovered that the timers are initialized twice, apparently the web-application context listener is called on each instance independently.

What can I do to make sure my timers are started once and only once at deployment time?

Cheers,Bastian
[Message sent by forum member 'batzee' (batzee)]

http://forums.java.net/jive/thread.jspa?messageID=333151