1 2 Previous Next 18 Replies Latest reply on Mar 13, 2009 10:28 AM by Ales Justin

    Locking in DeploymentRepository

    Ales Justin Master

      While fixing JBAS-6330 I saw I need a lock on the HDScanner
      as in 5_x we do check for modifications differently.
      (multiple profiles, hence multiple urls)

      I would need a lock on the HDScanner when Tools want to suspend it.
      And then release that lock when they are ready to resume.

      The issue is how to impl that, since Tools invocations will call from two diff threads,
      and most Lock impls don't support that.
      (btw: this should also be fixed in 5_0's SerializableDeploymentRepository).

      How do I take a hold of HDScanner's monitor?

        1 2 Previous Next