What are you trying to do?
Are your writing a service, or trying to access a
I am trying to access a service by calling a MBean, e.g. to have a client to call a serivce method of a MBean in JBoss. I need to find the MBean first.
Thank you for replying.
Is there other way apart from using RMIAdaptor?
If I use MBeanServerFactory.findMBeanServer(java.lang.String AgentId), how do I get AgentID of the server that I want and where to get it?
Pass "null" and use the first MBeanServer. JBoss has
This won't work from a client. findMBeanServer only
works in the same VM/classloader.
Is MBeanServer JNDI registered in JBoss, so I could use JNDI lookup to get the MBeanServer?