3 Replies Latest reply on Aug 1, 2006 8:44 PM by Ben Wang

    Pojo (Tree Cache) locking question

    Shalom Nagar Newbie

      Hello

      I am trying to use the org.jboss.cache.lock.* package
      in order to obtain (replicated) cache wide Object Locking.

      Using the IdentityLock class I have managed to lock (write locks) objects (annotated pojos) on a single node.
      For some reason the lock does not seem to prevent other nodes in the cluster
      , from obtaining locks to the same object.
      Is it because I am using the DummyTransactionManager preconfigured in the release's example XMLs
      I am using 1.4GA version.
      The
      ? tx.start
      pojo1.setField1();
      pojo2.setField2() ;
      tx.commit()
      ?
      Way of doing things is not going to workout for me.
      I Really need cluster wide directlocks.

      Many Thanks

      Shal.