In my previous post I forgot to add the code which shows how I use the RMIAdaptor.
The following code below shows how I try to call the getBeanInfo method:
InitialContext ic = new InitialContext(); RMIAdaptor server = (RMIAdaptor) ic.lookup("jmx/rmi/RMIAdaptor"); // Get the MBeanInfo for the MBean ObjectName name = new ObjectName("HelloWorld:name=helloWorld1"); MBeanInfo info = server.getMBeanInfo(name);
Any help will be very much appreciated.
twiddle uses the RMIAdaptor as well so I would guess that your jndi.properties is not point to the server you expect.
Thanks for your reply Scott. I think I have the correct jndi.properties file since I can do a lookup on pre-packaged MBeans like the "jboss:service=JNDIView" etc. Below is the jndi.properties file that I am using:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.provider.url=jnp://localhost:1099 java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces