_logger.log(Level.FINE, "CascadingLifecycleImpl.stopDASCascading");
// get the jmx connector for the DAS
// and invoke InstanceCascadingMBean on DAS
ServerContext sc = ApplicationServer.getServerContext();
ConfigContext configContext = sc.getConfigContext();
if (! isDASRunning(configContext) ) {
_logger.log(Level.FINE, "cascading.dasisnotrunning");
return;
}
try {
// get DAS server instance name
Server dasServer = ServerHelper.getDAS(configContext);
String dasInstanceName = dasServer.getName();
// get MBeanServerConnection
MBeanServerConnection mbsc =
ServerHelper.connect(configContext, dasInstanceName);
// invoke InstanceCascadingMBean on DAS
ObjectName on = new ObjectName(
getInstanceCascadingMBeanObjName(sc, dasInstanceName));
String[] signature = {"java.lang.String"};
Object[] param=new Object[1];
param[0]=(Object) sc.getInstanceName();
mbsc.invoke(on, "stopCascadeInstance", param, signature);
} catch(MalformedObjectNameException mone) {
mone.printStackTrace();