title: multi node environment (cluster), how to make sure an action executed only once on startup?
body: <p>My application is running on a cluster of 4 nodes. On startup (ServletContextListener) it must execute an SQL script. How to make sure that the SQL is executed only once and not 4 times as each of the nodes will try to execute the same code? </p>