-
1. Re: MBean invisible outside JBoss
juhalindfors Apr 13, 2003 1:53 PM (in response to nisroc)Is your MBean serializable? What is your client OS?
-
2. Re: MBean invisible outside JBoss
darranl Apr 14, 2003 4:40 AM (in response to nisroc)If you want to access the MBean from outside of JBoss you might need to use the RMI adapter to interface with it.
-
3. Re: MBean invisible outside JBoss
nisroc Apr 21, 2003 1:03 PM (in response to nisroc)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? -
4. Re: MBean invisible outside JBoss
darranl Apr 23, 2003 6:11 AM (in response to nisroc)Have you tried the RMI adapter yet?
-
5. Re: MBean invisible outside JBoss
kbk Apr 26, 2003 9:31 AM (in response to nisroc)Hi,
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 ;-) -
6. Re: MBean invisible outside JBoss
juhalindfors Apr 26, 2003 10:38 AM (in response to nisroc)String adaptor = "jmx/rmi/RMIAdaptor";
RMIAdaptor server = (RMIAdaptor) new InitialContext().lookup(adaptor);
...
server.invoke(objectname, "operation" .... );
server.getAttribute(objectname, "attribute");
etc.
the adaptor is bound to the naming server in the default JBoss config.