2 Replies Latest reply on Jan 25, 2008 8:49 AM by Vassilis Petropoulos

    raiseTimedEvent on ear with multiple wars

    Vassilis Petropoulos Newbie


      i have an ear application containing one ejb and two war modules.

      i wrote a bootstap class in order to start some scheduling:

      public class Bootstrap {
       @In EntityManager entityManager;
       public void start() throws Exception {
       Events.instance().raiseTimedEvent("activationEvent", new CronSchedule((Long) null, "0 0/1 * * * ?"));
       public void stop() {

      The problem is that when server starts, method start() is been calling twice (once per war module), causing the same scheduler to fire twice.