AnsweredAssumed Answered

Wait for action

Question asked by dranakan on May 4, 2010
Hello,

I need your help…

I have multiple actions which do process and write some files in alfresco. They are working fine but when they work in concurrence, they are locks (normal), the action restart and all is ok.

Now there will be more users… and I think that the actions will always restart…

Each main actions (which take time from 1 to 40 minutes) run one by one (I am using locks (Lock lock = new ReentrantLock();…) in java code to wait and restart actions).
For exemple, the Action_A could not run two times in same time. But Action_A and Action_B could…

Is it a good idea to share locks between all my actions (which take time) or are there another way to do this  :?: ?

Thanks

Outcomes