How can a Java event handler know if another is running?
We have 4 Java event handlers that can be run by users but if one is already running, even on a different object and by a different user, one of them will fail. We are investigating why this might be happening but as a workround is it possible for the event handler Java code (or elsewhere) to find out if one of the 4 routines is currently running? If one is running then ideally (until we solve the conflict) it would simply queue up behind it. Alternatively it would not try to run for, say, 15 minutes when it would check again. The worst option would be to tell the user to try again later.
Has anyone any suggestions?