This content has been marked as final.
Show 1 reply
-
1. Re: When to use MBean?
juha Sep 27, 2002 11:04 AM (in response to redgiraffe)You should be able to connect to an MBean from a session by looking up the connector from JNDI:
String serverName = InetAddress.getLocalHost().getHostName();
String connectorName = "jmx:" +serverName+ ":rmi";
RMIConnector server = (RMIConnector) new InitialContext().lookup(connectorName);
server.invoke(someObjectName, "someOperation", args, sign);