Connect to adminserver using JMX client via t3s
how can i connect to adminserver by using JMX client via t3s. The following calls failed with java errors:
String serviceUrl ="service:jmx:t3s://xyz.com:7002/jndi/weblogic.management.mbeanservers.domainruntime";
or
String serviceUrl ="service:jmx:iiops://xyz.com:7002/jndi/weblogic.management.mbeanservers.domainruntime";
JMXServiceURL serviceURL = new JMXServiceURL(serviceUrl);
Hashtable h = new Hashtable();
h.put(Context.SECURITY_PRINCIPAL, username);
h.put(Context.SECURITY_CREDENTIALS, password);
h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES, "weblogic.management.remote");
JMXConnector connector = JMXConnectorFactory.connect(serviceURL, h);
MBeanServerConnection connection = connector.getMBeanServerConnection();
return connection;
Where can i found a documentation or how to do?
Thanks - Alexis