if (targetModuleID==null) {
throw new ClientExecuteException(localStrings.getLocalString(
"enterprise.deployapi.actions.clientconfigurationimpl.nomoduleid",
"No moduleID for deployed application found"));
}
TargetImpl target = (TargetImpl) targetModuleID.getTarget();
String moduleID;
if (targetModuleID.getParentTargetModuleID()!=null) {
moduleID = targetModuleID.getParentTargetModuleID().getModuleID();
} else {
moduleID = targetModuleID.getModuleID();
}
try {
// retrieve the stubs from the server
String location = target.exportClientStubs(moduleID, System.getProperty("java.io.tmpdir"));
// invoke now the appclient...
String j2eeHome = System.getProperty("com.sun.aas.installRoot");
String appClientBinary = j2eeHome + File.separatorChar + "bin" + File.separatorChar + "appclient";
String command = appClientBinary + " -client " + location;