Is your MBean serializable? What is your client OS?
If you want to access the MBean from outside of JBoss you might need to use the RMI adapter to interface with it.
No, it is not. It extends the ServiceMBeanSupport class provided by JBoss. I walked up the object heirarchy and none of the classes implemented Serializable.
I just tried making my MBean serializable and it still did not work.
I am running both the client and server locally on a windows xp box.
Any other ideas?
Have you tried the RMI adapter yet?
I have the same problem. I read somewhere that trying to retrieve a MBean outside its own JVM, would always return null. But you mentioned something about the RMIAdaptor. How to use ?? An example would be good ;-)
String adaptor = "jmx/rmi/RMIAdaptor";
RMIAdaptor server = (RMIAdaptor) new InitialContext().lookup(adaptor);
server.invoke(objectname, "operation" .... );
the adaptor is bound to the naming server in the default JBoss config.