Hi,
I am running JBoss 4.2.2, and i have a cluster of four nodes.
One of the requirements, that i have to implement is to determine which node in the cluster is the master node. Currently, the way i am doing this now is asking for a current view in HAPartition:
private String getMasterSocket() { HAPartition partition = this.getPartition(); if (partition != null) { if (partition.getCurrentView() != null) { return partition.getCurrentView().get(0).toString(); } else { return null; } } else { return null; } }