users@glassfish.java.net

Monitoring GlassFish3 vs GlassFish2

From: <glassfish_at_javadesktop.org>
Date: Fri, 09 Jul 2010 03:00:37 PDT

Hello.
I have a simple application that uses GlassFish 2 Monitoring beans. At first I'm turning on monitoring level via web admin console in section Configuration->Monitoring(HIGH or LOW).
Then when I want to see for example JDBC connection pools state I requested for beans names
"amx:j2eeType=X-JDBCConnectionPoolMonitor,name=*
and then get attribute "NumConnUsed" in each of them.
The same stat I`v got for other Monitors for example HTTPListenerMonitor

Now I want to upgrade my application to work with GlassFish 3.
I expected that amx path to monitor beans have been changed.
So I turned on Monitoring in GlassFish3 then made a query for all beans names
and then I`ve got the only Monitoring Bean with such path
pp=/domain/configs/config[server-config],type=monitoring-service
that contains attributes "level"
but there was no JDBCConnectionPoolMonitor or HTTPListenerMonitor and a lot of Monitor beans within any path,

So please, can anyone say where and how can be obtained Monitor data in Glassfish3 as it was accessible in Glassfish2?
[Message sent by forum member 'jmichaelj']

http://forums.java.net/jive/thread.jspa?messageID=477186