0 Replies Latest reply on May 21, 2002 10:44 PM by fstarsinic

    jndi lookup() returns different values in different jvm..  H

    fstarsinic

      jboss 2.4.1 - jdk1.3.1 - win2000

      I am storing a string in Jndi to be looked up within jboss and from external jvm's.

      i can do a lookup() from within jboss and from
      an external jvm and all seem ok.

      however, when i modify the value a la
      Context c = new InitialContext();
      c.rebind("this", "that");

      i get strange results (to me, anyhow).

      if i do the rebind() from within jboss jvm
      and do a lookup() from within jboss jvm
      all seems well but
      i get the old values if i
      do a lookup() from a different jvm.

      and also....

      if i do the rebind() from within a different jvm
      and a lookup() from a different jvm
      all seems well again but then
      the changes are not noticed if i
      do a lookup() from within jboss.
      (again, i get the original values)

      i would assume that changes in jndi would
      get noticed, irrespective of the jvm.
      i thought that was the idea behind jndi.

      how do i make global changes OR what am I
      missing?

      thanks,

      frank