3 Replies Latest reply on Nov 19, 2009 3:00 PM by swhytefamc

    Simple-Scheduler

      I have create a service that will execute via the simple-scheduler


      <schedule-provider name="WorkSchedule">
      <simple-schedule frequency="300" frequencyUnits="seconds" scheduleid="work-trigger" />
      </schedule-provider>


      According to the frequency, it should run every 5 mins, but fires every 10 seconds instead.

        • 1. Re: Simple-Scheduler
          h.wolffenbuttel

          Hi,

          I have been looking at the code of ESB 4.6 and did see code for the frequencyUnits, but also that the ScheduleProvider is deprecated. So it could be that the SheduleResource is used. If so, it uses the quarts.properties rather than your configuration.

          Not sure if this is the case, but it could be an explenation.

          Regards,

          Hans

          • 2. Re: Simple-Scheduler
            tomeicher

            Hi,

            I don't know what you're intending, but using

            <scheduled-listener name="myAltertingListener"
            schedule-frequency="300"
            event-processor="xxx.xxx.MyListener">

            where MyListener is a ScheduledEventMessageComposer works as advertised.

            Doing MyListener as a ScheduledEventListener works as well, but see my post
            http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266152#4266152
            where I had to create a dummy "do nothing" pipeline action for that...

            Cheers, Tom.

            • 3. Re: Simple-Scheduler

              I got it to work, I just needed to add scheduling to the scheduled-listener and now it works fine.

              <scheduled-listener
              event-processor="com.test.esb.listeners.workflow.WorkScheduledEventComposer" name="WorkSchedulerEventHandler" poll-frequency-seconds="300"
              scheduleidref="workflow-trigger" transacted="true"/>

              Thanks for the replies