4 Replies Latest reply on Apr 13, 2003 7:21 PM by slaboure

    Get the list of available servers

    manishgupta

      I am using three JBoss instances and I clustered them successfully. Now I need a list of available server programatically. Is there any Java API for this. If yes ...from where I can get it.

      Thanks in advance

        • 1. Re: Get the list of available servers
          belaban

          What do you want to do ?
          The underlying disovery uses JavaGroups.

          But if you want to, you can use the state service (checkout the cluster documentation) and attach some serializable info to each server. This could be done in an MBean that you start with your app.
          When you want to retrieve the info you just access the local state service, because all information is replicated.
          Bela

          • 2. Re: Get the list of available servers
            slaboure

            Either use the HAPartition MBean directly or use the DistributedReplicantManager if you want to reference your own services and know on which subset of a cluster they live (aka heterogeneous deployments)

            Cheers,


            sacha

            • 3. Re: Get the list of available servers
              manishgupta

              Please let me to reformat my question. Actually I want to cluster 5-6 JBoss servers. Currently i am using only 2 instances of JBoss which are running on seperate systems.

              My problem is that I want to create an adminstration page (JSP page) from where I can view the list of avialable servers. Please tell me How I can do this.

              Is thers any API for that. Please help me

              Thanks for your reply

              • 4. Re: Get the list of available servers
                slaboure

                yes, see my previous answer, that was it.