Hi,
i would like to use EJB Timer services in a clustered JBoss 4.2.1 environment. We are using active / passive cluster configuration so only one cluster node will be active at a given time. My questions are:
- Are the timer services state persisted across the cluster ?
- Does this state in the JBoss implementation include timer restoration ? As in, if my timer is supposed to expire in 10 minutes when the cluster node goes down is it going to expire in 10 minutes when the new cluster node takes over ?
Thanks.
The EJB Timer service is not yet clusterable in JBoss.
This scheduled to be implemented in 5.x.
If a clustered timer is indeed necessary, rather than the standard timer service, you could instead configure JBoss to use a QuartzService:
http://www.opensymphony.com/quartz/api/org/quartz/ee/jmx/jboss/package-summary.html
When configured with a JDBCJobStore, the quartz scheduler is clusterable, as documented here:
http://www.opensymphony.com/quartz/wikidocs/ConfigJDBCJobStoreClustering.html