Make asadmin stop-domain a local command Admin Overall Task List I need some background as to why this is needed/wanted?!? Here are some useful facts: Remote Command Location: v3/core/kernel/src/main/java/com/sun/enterprise/v3/admin class: com.sun.enterprise.v3.admin.StopDomain Kedar's Explanation For stopping a domain, the most natural thing the user would want to provide is the name of that domain, not its port. The issue is pronounced in the case of multiple domains. This bears similarity with its counter-part: the start-domain command which should take the domain name as a parameter. Currently (as of 1st week of Feb 2008), that's not true, stop-domain takes the port number (I guess). The implementation must find the port from the name of the domain (by parsing domain.xml) and then issue the stop-domain request just like today. Byron's Explanation All done. The virtual server, xxasadmin, is parsed. Then I get the http-listener(s) associated with it. From it/them I get the port/ports. StopDomainCommand then calls DAS on that port number and asks it to stop. <p>Note: xxasadmin is underscore-underscore asadmin. If I type in the underscores, Wiki will make everything bold!
|