An abstract method that Executes the command
validateOptions();
try
{
MBeanServerConnection mbsc = getMBeanServerConnection(getHost(), getPort(),
getUser(), getPassword());
DomainRoot domainRoot = ProxyFactory.getInstance(mbsc).getDomainRoot();
//final Set s = domainRoot.getQueryMgr().queryJ2EETypeSet(XTypes.WEB_SERVICE_ENDPOINT_CONFIG);
String webServiceName = (String) getOperands().get(0);
validateWebServiceName(webServiceName, true);
WebServiceEndpointConfig wsc =
getWebServiceEndpointConfig(mbsc, webServiceName, true);
if (wsc == null)
throw new CommandException(getLocalizedString("CannotFindWebservice"));
String maxHistorySize = getOption(MAX_HISTORY_SIZE_OPTION);
String monitoring = getOption(MONITORING_OPTION);
if (maxHistorySize != null)
{
wsc.setMaxHistorySize(maxHistorySize);
}
if (monitoring != null)
{
wsc.setMonitoringLevel(monitoring);
}
CLILogger.getInstance().printDetailMessage(getLocalizedString(
"CommandSuccessful",
new Object[] {name}));
}
catch(Exception e)
{
displayExceptionMessage(e);
}