I am using JBeret on Wildfly, lets say I have Job1 that consists of StepA, StepB, StepC. Lets say I have Job2 that consists of StepB.
Now, when both Jobs run at the same time, I would like to prevent StepB to be executed in prallel. Meaning Job1 should wait or fail if Job2 runs StepB while Job1 wants to start StepB.
How can I achieve this?
Thank you.