// config context
ConfigContext cCtx = sc.getConfigContext();
// jmx connector information
JMXConnectorConfig jcc =
ServerHelper.getJMXConnectorInfo(cCtx, instanceName);
// jmx service url
JMXServiceURL url = JmxServiceUrlFactory.forRmiWithJndiInAppserver(
jcc.getHost(), Integer.parseInt(jcc.getPort()));
// domain name
String domainName =
ServerHelper.getAdministrativeDomainName(cCtx, instanceName);
// true when server is DAS
boolean isDAS = ServerHelper.isDAS(cCtx, instanceName);
// user data
Hashtable userData = new Hashtable();
userData.put(HOST_KEY, jcc.getHost());
userData.put(PORT_KEY, jcc.getPort());
userData.put(USER_KEY, jcc.getUser());
userData.put(PASSWORD_KEY, jcc.getPassword());
userData.put(PROTOCOL_KEY, jcc.getProtocol());
userData.put(SystemPropertyConstants.SERVER_NAME, instanceName);
userData.put(DOMAIN_NAME_KEY, domainName);
userData.put(IS_DAS_KEY, new Boolean(isDAS));
// jmx system connector certificate