4 Replies Latest reply on Jun 9, 2003 10:50 AM by slaboure

    Is it possible to only use certain servers from a cluster.

    rixc

      In the clustering documentation it says that it is possible to disable the AutoDiscovery feature by setting the jnp.disableDiscovery to true.

      But when I do this my client is still able to find other Jboss servers on my network even though I have set the disableDiscovery to true and I have specified the list of servers I want to connect to using the java.naming.provider.url

      Is this normal?

      Ricardo

        • 1. Re: Is it possible to only use certain servers from a cluste

          This feature correctdly works for me. I am using jboss 3.0.7. What version are you using? Can you post your code snipped where you set this?

          Thanks,
          Dave

          • 2. Re: Is it possible to only use certain servers from a cluste
            rixc

            I am also using 3.0.7

            Here is a snippet of the client connection properties used when I create teh InitialContext.

            props.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
            props.put("java.naming.provider.url", "W077:1100,W078:1100");
            props.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
            props.put("jnp.disableDiscovery", "true");



            Even with this it still hops around other servers on my network.

            • 3. Re: Is it possible to only use certain servers from a cluste
              darranl

              Are all of the other servers in the same cluster?

              As I understand it the configuration you are setting only affects how it finds the first server in the cluster, once you have found the server a list of all running servers in the cluster will be given to the client.

              • 4. Re: Is it possible to only use certain servers from a cluste
                slaboure

                Yes, Daran you are right, I hadn't understood the initial question this way, but you got it right: the list of members you indicate in the jndi.properties file (or whatever means) is just here to bootstrap and get a reference to the clustered JNDI service. But then, you get a proxy that knows all members in the cluster. Otherwise, simply disable the HA-JNDI server on the nodes you don't want to reach.

                Cheers,


                sacha


                P.S: saw your post on CL issues, will take a look at it when I have time.