in src/main/java/org/apache/openejb/cts/deploy/StandardDeployment14.java [392:419]
public boolean isDeployed(Properties p) throws TSDeploymentException {
TestUtil.logHarness("StandardDeployment14.isDeployed()");
String sArchive = p.getProperty("ear_file");
String sAppName = getAppName(sArchive);
// For now just assume that we started with clean servers
// and check our internal state hashtable
if (htDeployedModules == null) {
return false;
}
// resync the list of deployed modules with what the targets actually report
try {
normalizeMap(getTargets());
} catch (Exception e) {
e.printStackTrace();
}
TargetModuleID[] id = (TargetModuleID[]) htDeployedModules.get(sAppName);
if (id != null && id.length > 0) {
TestUtil.logHarnessDebug("StandardDeployment14.isDeployed(): "
+ "After checking hashtable, id = " + sAppName);
return true;
} else {
TestUtil.logHarnessDebug("StandardDeployment14.isDeployed(): "
+ "After checking hashtable, id = null");
return false;
}
}