2 Replies Latest reply on Sep 5, 2005 10:10 AM by comodi

    Return Multiple Membership

    comodi

      Hi to all,

      suppose we have an host belonging to two different partitions; what is the best way (or is there a method) that giving in input the host name returns all the partition_name to which that host belongs?

      Thanks,

      Luca

        • 1. Re: Return Multiple Membership
          belaban

          Remember that a partition is represented by an MBean (ClusterPartition). So the only way to list your partitions is to have all ClusterPartition MBeans reside in the same *domain*, and then enumerate them according to domain, e.g.

          jboss.cache:service=ClusterPartition1
          jboss.cache:service=ClusterPartition2

          You could run an MBean query with "jboss.cache:service=ClusterPartition*".

          • 2. Re: Return Multiple Membership
            comodi

            So there isn't a way different from the JMX console? My target is to create a method that return a vector of partitions_name which input host belongs.