1 Reply Latest reply on Mar 17, 2003 2:34 PM by Sacha Labourey

    invoking operation on single node?

    Pratik Patel Newbie

      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