1 Reply Latest reply on Aug 7, 2003 2:38 AM by Olexander Rudyy

    Scheduler startup delay

    Paul Newbie

      Hi,

      We are using Jboss 3.2.1 and wish to delay the first time repetition of a Schedulable task. It seems that the InitialStartDate field can set to NOW which will start the first repetition 1 second after startup. Is this parameter configurable? I am about to update the Scheduler class so that I can specify NOW+nnnn where nnnn is an arbitrary number of milliseconds, but thought I would check beforehand.

      Cheers,
      Paul.

        • 1. Re: Scheduler startup delay
          Olexander Rudyy Newbie

          Hi!
          I delayed scheduler startup by including tag into service configuration where included service name which shall be started before scheduler.
          In below example, I made dependence to EJB from which my scheduler depends. And now this cheduler runs after deploy this EJB.

          For example

          true
          com.ikimbo.agenda.scheduler.AgendaScheduler
          agenda
          java.lang.String
          0
          300000
          -1
          jboss.j2ee:service=EJB,jndiName=agendaManager
          jboss.j2ee:service=EJB,jndiName=MonitorQ