Hi,
I am unable to connect to JMX from an external client for CE 7.1 (EPH1 Preview Version) although the same code is working for ECC 6.0. Here is the Code I am using
public void connect()
{
try {
Properties connectionProperties = new Properties();
connectionProperties.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.sap.engine.services.jndi.InitialContextFactoryImpl");
connectionProperties.setProperty(Context.PROVIDER_URL, "localhost:50004");
connectionProperties.setProperty(Context.SECURITY_PRINCIPAL, "administrator");
connectionProperties.setProperty(Context.SECURITY_CREDENTIALS,"welcome1");
MBeanServerConnection mbsc = JmxConnectionFactory.getMBeanServerConnection(
JmxConnectionFactory.PROTOCOL_ENGINE_P4, connectionProperties);
}catch(Throwable e) {
e.printStackTrace();
}
}
I am getting the following exception:
Caused by: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: Cannot create new RemoteLoginContext instance.]
Please help.
Regards
Rajendra