[jboss-user] [Clustering/JBoss] - Re: Looking up all Node Names within a partition
osganian
do-not-reply at jboss.com
Thu May 29 15:22:55 EDT 2008
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());
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154444#4154444
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4154444
More information about the jboss-user
mailing list