title: Scheduled tasks with multiple servers - single point of responsibility
body: <p>We have a Spring + JPA web application.
  We use two tomcat servers that run both application and uses the same DB.</p>
  
  <p>One of our application requirmemnt is to preform cron \ scheduled tasks.</p>
  
  <p>After a short research we found that spring framework delivers a very straight forward solution to cron jobs,
  (Annotation based solution)</p>
  
  <p>However since both tomcats running the same webapp - if we will use this spring's solution we will create a very problematic scenario where 2 crons are running at the same time (each on a different tomcat)</p>
  
  <p>Is there any way to solve this issue? maybe this alternative is not good for our purpose?</p>
  
  <p>thanks!</p>