1 Reply Latest reply on Jan 6, 2006 6:09 PM by Brian Stansberry

    Running a scheduled service only on one machine in a cluster

    lordbritish Newbie

      I'm not exactly sure where do post this but here goes.

      I have JBoss set up in a cluster on several machines.

      I need to run a job/service based on a configurable schedule (daily, twice a day, or whatever).

      The job/service need to have high availability (it will cause undesirable effects on my job security if it does fail :) ).

      Furthermore, this job should only run on one of the machines at any given time, however, it may run on any of the machines.

      I can set up some sort of scheduler on each of the JBoss instances but how do I make sure that only one job is run at a given time.

      I'm not quite sure how to solve this problem :(