Hello,
after looking through the code for the FarmMemberService and HAPartitionImpl, I am still trying to figure out how I can run an operation on a (registered) MBean on a single node, not the entire cluster.
My current idea is to use HAPartition.getCurrentView(), parse the names, fetch the RMIAdapter on remote server using JNDI:
RMIAdaptor server = (RMIAdaptor) ic.lookup("jmx:" + serverName + ":rmi");
then execute the remote code:
server.invoke(etc...)
Can anyone suggest something better?
cheers
prp
Well, by default, when you invoke an operation against an MBean, it will *only* be invoked against a *single* node, not all MBeans with the same ObjectName in the cluster.
Maybe I don't correctly understand your problem.
Cheers,
sacha