2 Replies Latest reply on Jan 22, 2003 8:20 PM by David Budworth

    jnp.disableDIscovery being ignore on HA-JNDI client connects

    David Budworth Newbie

      Howdy y'all,

      according to the jboss clustering book, you can set the jndi property "jnp.disableDiscovery" property to "true" to disable auto-discovery of HA-JNDI servers

      But, it doesn't seem to be paying attention to the setting.

      In particular, I'm trying to make a junit test case for our code that specifically tests the server down scenario, but, since I can't suppress auto-discovery, I can't exactly test it.

      Here's what the Properties that I pass to the InitialContext constructor.
      java.naming.provider.url=localhost:9999
      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      jnp.disableDiscovery=true
      java.naming.factory.url.pkgs=jboss.naming:org.jnp.interfaces

      -David Budworth