Sure, you could even write a small MBean that collects the stats and makes the available via JMX
Can u give me an idea of where to find code snippets to understand how this can be done..Am i correct in assuming that if ANY agent that joins a channel called "Defaultpartition" automatically is part of the cluster??
Specifically, where can i find code in the jboss CVS tree that handles new nodes being added to the cluster and how notifications are processed at each node?
Look at ClusterPartition (in cluster/src/main/org/jboss/ha/framework/server) for an example