This content has been marked as final.
Show 1 reply
-
1. Re: Looking up all Node Names within a partition
osganian May 29, 2008 3:22 PM (in response to osganian)FYI:
javax.naming.Context context = new InitialContext(System.getProperties()); org.jboss.ha.framework.interfaces.HAPartition haPartition = (org.jboss.ha.framework.interfaces.HAPartition) context.lookup("HAPartition/" + partitionName); org.jboss.ha.framework.interfaces.ClusterNode[] nodes = haPartition.getClusterNodes(); for (int index = 0; index < nodes.length; index++) { System.out.println(nodes[index].getName()); }