There is a JMX bean available that will display the nodes active in a cluster. I think the name of it is org.jboss.ha.framework.server.ClusterPartition.
You can get to it via the jmx console...
I needed to go to jmx-console, search for jboss->service=MyPartitionName
Could you give an example of retrieving information from that mbean on the command line (i.e. via twiddle)? I've been trying to do something similar without the jmx-console and haven't succeeded. Thanks,
Let's assume you don't start JBoss with the -g switch, so your HAPartition is named "DefaultPartition".
For AS 5:
[bes@besdev bin]$ ./twiddle.sh get jboss:service=HAPartition,partition=DefaultPartition CurrentView CurrentView=[127.0.0.1:1099]
For AS 4:
[bes@besdev bin]$ ./twiddle.sh get jboss:service=DefaultPartition CurrentView CurrentView=[127.0.0.1:1099]
If you start with -g, e.g. "./run.sh -c all -g MyPartition" then replace "DefaultPartition" in the above with "MyPartition".