1 Reply Latest reply on Apr 27, 2003 10:00 AM by Sacha Labourey

    JNDI context access syncronization

    sys user Master


      As far as I understand, to move an existing JSP/Servlet/JavaBeans beased application into distributed environment, I need to put all existing static variables (or a singleton objects properties) into JNDI (as Serializable data objects) to make them replicated/accessible to all nodes in the cluster.

      I would like to ask if there is a possibility to get some kind of distributed lock similar to standard java synchronization ?

      like this:
      getLock(initialContext,"JNDI name")

      x = initialContext.lookup(...)

      modifyObject(x) ...


      releaseLock(initialContext,"JNDI name")

      Thank you,