Synchronizing beanshell scripted jobs

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Synchronizing beanshell scripted jobs

Igor_Fishman
Hi,

We would like to synchronize between different invocations of the same job.
What is the best way to do that?

Alternative #1 - synchronize via build life object i.e. synchronize(BuildLifeLookup.getCurrent())  {}
Question: Does it works? Do we really get same object in each job invocation or it is just a proxy?

Alternative #2 - implement locking via LockableResources API that Anthill Provides.
Question: Could you please send an example how to do that?

Alternative #3 - Implement locking via file locking mechanism using Java API

Thank you,

Igor


_______________________________________________
Anthill-pro mailing list
[hidden email]
http://lists.urbancode.com/mailman/listinfo/anthill-pro