ENVIRONMENT NetBeans 6.9.1, GlassFish 3.1, METRO 2.1
I want to make a list of available web services, so I'm querying JMX MBeanServer for *:type=WSEndpoint,*
. The problem is, there are only ~56 Mbeans after deploy, and WSEndpoint
beans are not registered. If I connect with JMXterm, the MBean count jumps up to ~380, and all WSEndpoint
beans are visible. From JConsole, I don't see any folder
, but after running JMXterm I do.
Even if I call the web service, the MBeans stay unregistered. METRO monitoring is enabled by default, and I left it like that; after deploy a console message INFO: Metro monitoring rootname successfully set to: amx:pp=/mon/server-mon[server],type=WSEndpoint,name=...
is shown.
What does JMXterm do so that all MBeans are visible? Does it do any method calls to MBeanServer
? Is there any solution, so that I can access WSEndpoint
beans right after deploy?
You can trigger the registration of all AMX MBeans with by executing the JMX operation bootAMX
on the MBean amx-support:type=boot-amx
.