users@glassfish.java.net

How to configure services via AMX?

From: <glassfish_at_javadesktop.org>
Date: Wed, 08 Oct 2008 13:47:19 PDT

Hi,

I am trying to manage my web services via AMX.

It is easy to list them:

ASConnection = Connect.connectNoTLS("127.0.0.1", 8686, "admin", "adminadmin");
                        DomainRoot dRoot = ASConnection.getDomainRoot();
m = dr.getWebServiceMgr().getWebServiceEndpointKeys();

for (Iterator iter = m.keySet().iterator(); iter.hasNext();) {
            String key = (String)iter.next();
            System.out.println("Looking for runtime objects for " + key);
            Set<WebServiceEndpoint> epSet =
            dr.getWebServiceMgr().getWebServiceEndpointSet(key,"server");
}

But I have not figured out how to configure them. E.g. I would like to turn on monitoring.
Unfortunately there are no WebServiceEndpointConfig’s available for newly deployed services.

[final Set<WebServiceEndpointConfig> s =
dr.getQueryMgr().queryJ2EETypeSet(XTypes.WEB_SERVICE_ENDPOINT_CONFIG);]

I would appreciate any suggestions on how to get these created via AMX.

Thanks in advance,
Jan
[Message sent by forum member 'ran_and_stimpy' (ran_and_stimpy)]

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