[jboss-user] [Clustering/JBoss] - Re: querying ejb proxy stub for available nodes
bstansberry@jboss.com
do-not-reply at jboss.com
Fri Jan 11 13:05:12 EST 2008
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 that allow the proxy to communicate with a cluster node.)
Problem is the targets are not necessarily user-friendly; e.g. if you are using the JRMP invoker (default) the target will be an RMI stub.
Turn on TRACE level logging of org.jboss.ha on the client side; you'll see messages to clue you in on what String to pass to ClusteringTargetsRepositorygetFamilyClusterInfo().
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119194#4119194
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119194
More information about the jboss-user
mailing list