i'm trying to receive remote MBean informations about jboss.system:type=Server MBean.
.
.
Hashtable props = new Hashtable();
props.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
props.put(Context.PROVIDER_URL, "jnp://remotehost:1099
);
Context context = new InitialContext(props);
RemoteMBeanServer connector = (RemoteMBeanServer) new RMIConnectorImpl((RMIAdaptor)context.lookup("jmx/rmi/RMIAdaptor"));
ObjectName on = new ObjectName("jboss.system:type=Server");
MBeanInfo mbi = connector.getMBeanInfo(on);
.
.
.
why mbi is NULL?
why i dont succeed to retreive MBean informations?