You can call
org.jboss.ha.framework.interfaces.ClusteringTargetsRepositorygetFamilyClusterInfo(String)
to get the org.jboss.ha.framework.interfaces.FamilyClusterInfo object for the
bean. From there you can call FamilyClusterInfo.getTargets() to get back an
array list of targets (i.e. objects
shoeb1981 wrote : Nodes come and go.
Thanks for your answer. Of course I mean the nodes at lookup time, I realize
that they may change.
I should be possible, the load balancing and failover logic is in the smart
stub, not on the server.
View the original post :
Nodes come and go. I don't if it is possible to come to know about number of
nodes in the cluster from client application. However, if you have 10 nodes
that are not active all the time, while some are active other might be
sleeping, then you can put their names in the client url string