An abstract method that Executes the command
validateOptions();
MBeanServerConnection mbsc = getMBeanServerConnection(getHost(), getPort(),
getUser(), getPassword());
String config = resolveTargetToConfig(mbsc);
String objectName = "com.sun.appserv:type=management-rules,config=" +
config + ",category=config";
CLILogger.getInstance().printDebugMessage("ObjectName = " + objectName);
//use http connector
final String operationName = getOperationName();
try
{
Object returnValue = mbsc.invoke(new ObjectName(objectName),
operationName, null, null);
handleReturnValue(returnValue);
CLILogger.getInstance().printDetailMessage(getLocalizedString(
"CommandSuccessful",
new Object[] {name}));
}
catch(Exception e)
{
displayExceptionMessage(e);
}