users@glassfish.java.net

How to monitor web service endpoints using AMX?

From: <glassfish_at_javadesktop.org>
Date: Tue, 04 Mar 2008 06:59:16 PST

Hi,

I need to collect some monitoring data (e.g. throughput, response time,...) for all web service endpoints deployed on the server. Furthermore I need a way to get the endpoint URL. As far as I know it should be possible to get the data via AMX.

Unfortunately I cannot find a tutorial or complete documentation about using AMX.

I managed to get this far:

[code]
AppserverConnectionSource src = Connect.connectNoTLS(...);
DomainRoot dr = src.getDomainRoot();

Map<Object, String> m = dr.getWebServiceMgr().getWebServiceEndpointKeys();
        
for (Object o : m.keySet()) {
    Set<WebServiceEndpoint> endpoints = dr.getWebServiceMgr().
                getWebServiceEndpointSet(o,WebServiceMgr.ALL_SERVERS);

    // and now ?
}
[/code]

So the question is where to go from here? Or is there another way to get the data? Can anyone point me to a complete documentation/tutorial?

Besides the getWebServiceEndpointSet works for "Sun Java System Application Server Platform Edition 9.0_01 (build b14)" but not for "Sun Java System Application Server 9.1_01 (build b09d-fcs)".

thanks for your help
[Message sent by forum member 'wierob' (wierob)]

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