1 Reply Latest reply on May 19, 2014 1:25 PM by tcunning

    ESB Clustered Scheduler

    janathuser

      We have a ESB cluster with 4 nodes and application have a scheduler as below. Since we going to deploy the application on all 4 nodes, how we going to control scheduler such that only one is running at each time? Kindly advise.

       

      <providers>

        <ftp-provider hostname="${source_hostname}" name="SimpleFTP">

         <ftp-bus busid="SimpleFTPChannel">

          <ftp-message-filter directory="${source_directory}"

      error-delete="false" error-suffix=".HAS_ERROR" input-suffix=".dat"

      password="${source_password}" post-delete="false"

      post-rename="true" post-suffix=".COMPLETE" protocol="sftp"

      username="${source_username}" work-suffix=".esbWorking"/>

         </ftp-bus>

        </ftp-provider>

        <schedule-provider name="SimpleSchedule">

         <cron-schedule cronExpression="0/5 * * * * ?" scheduleid="cron-schedule"/>

        </schedule-provider>

      </providers>

        • 1. Re: ESB Clustered Scheduler
          tcunning

          Hi Janath,

           

          The scheduler-provider in jboss-esb.xml can't be clustered.    There's a number of things you can do here if you need a task to operate once - you can have the scheduler-provider on only one of your nodes (although this doesn't guarantee failback), you can investigate the jbpm scheduler - which I believe is clusterable, you can look at the MBean scheduler (https://community.jboss.org/thread/68383?tstart=0).     I'm sure there are other options too, but this is a limitation that you are going to need to work around.