Accessing WebLogic Server MBeans with JMX (二)
???public static void main(String[] args) throws Exception {??????String hostname = args[0];??????String portString = args[1];??????String username = args[2];??????String password = args[3];
??????PrintServerState s = new PrintServerState();??????initConnection(hostname, portString, username, password);??????s.printNameAndState();??????connector.close();???}}
?