This content has been marked as final.
Show 3 replies
-
1. Re: RMIAdaptor problem
jugma Jul 6, 2004 6:23 PM (in response to jugma)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.
Thanks,
Jugma -
2. Re: RMIAdaptor problem
starksm64 Jul 6, 2004 8:02 PM (in response to jugma)twiddle uses the RMIAdaptor as well so I would guess that your jndi.properties is not point to the server you expect.
-
3. Re: RMIAdaptor problem
jugma Jul 7, 2004 10:46 AM (in response to jugma)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
Thanks,
Jugma