3 Replies Latest reply on May 28, 2012 7:51 AM by justdoit

    jboss 7, get node name

    justdoit

      Any idea how to get node name from jboss 7.0.2, something similar to this code which works on JBoss 4.3?

       

      MBeanServer server = MBeanServerLocator.locateJBoss();

      ClusterPartitionMBean cluster = (ClusterPartitionMBean) MBeanProxyExt.create(ClusterPartitionMBean.class, "jboss:service=" + partitionName, server);

      nodeName = cluster.getNodeName();