4 Replies Latest reply on Aug 8, 2002 11:57 AM by Sacha Labourey

    HA JNDI doesn't seem to replicate

    Derek Scotney Newbie


      Maybe the answer to my problem is obvious, but here goes anyway.

      Firstly, I am using an out-of-the-box 3.0.0RC3 version of JBoss under Win2000.

      I have a few machines running in a cluster. As each machine starts, I can see that new members are reported in JBoss. The idea is that the first server to start, connects to the HA JNDI binds a specific context into it. As each subsequent server starts it checks for that context and if it's not there, creates it. The initial context being used is retrieved as described in the Clustering doc.:

      Properties p = new Properties();
      p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NAmingContextFactory");
      p.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
      p.put(Context.PROVIDER_URL, "localhost:1100");
      return new InitialContext(p);

      The problem is that as the machines start, none of them can see the context bound into the HA JNDI by the other, and binds it to the JNDI.

      The question is, what additional configuration needs to be done, and secondly, is there a facility such as JndiView to view what's in the HA JNDI?

      Your help would be greatly appreciated.