I would like to run a background task on some interval from a web application I have deployed on Websphere 6.1 clustered environment. The task will access a database, send emails, and write to the database.
I was thinking about kicking off a thread when the web app is first loaded, as suggested here: http://stackoverflow.com/questions/791986/background-thread-for-a-tomcat-servlet-app.
Since it is a clustered environment, what would be the best way to NOT have task run on each individual node of the cluster?