Hi,
Our app runs on
Tomcat. During execution the application runs various jobs. Some jobs relay on the same resources, so they need acquire the lock before running (read or write, depending on semantics). I�ve used ReentrantReadWriteLock from java.util.concurrent.locks to implement this.
This works for the single instance of Tomcat. But we decided to run the app on several instances of the tomcat.
Is there any implementation of ReadWriteLock mechanism that I could use for my case?
I suppose it should use database to store lock information.
Thanks.