Hello world!
Our application runs some periodic tasks which should be executed one one node only. We used to have some HASingletonMBean packaged in a SAR for JBoss AS 4, which I guess was copy from somewhere (JavaDoc has @autor tags for Ivelin Ivanov from Apache and Scott Stark from JBoss). Some tasks work with common file system, so I could create a lock file, which would solve my problem, but other tasks don't access file system.
What is the correct way to implement this kind of synchronization in JBoss AS 7?
Regards