in src/main/java/org/apache/openejb/cts/deploy/StandardDeployment14.java [363:390]
public void undeploy(Properties p) throws TSDeploymentException {
String sArchive = p.getProperty("ear_file");
TestUtil.logHarness("StandardDeployment14.undeploy()");
initDeployTestUtils(p.getProperty("deployment.props.number"));
// Check to see if we're in a test directory that contains
// embedded rars
if (sArchive
.indexOf("connector" + File.separator + "deployment" + File.separator
+ "ejb_Deployment.ear") != -1
|| sArchive.indexOf("xa" + File.separator + "ee" + File.separator
+ "tsr" + File.separator + "ejb_Tsr.ear") != -1) {
// we must have an embedded ra file in this ear
// we need to remove the connection factory
p.setProperty("rar_file", sArchive);
// call into new porting package to remove connection factories
TargetModuleID[] modulesToUndeploy = (TargetModuleID[]) (htDeployedModules
.get(getAppName(sArchive)));
if (modulesToUndeploy.length == 0) {
TestUtil
.logHarness("undeploy failed for application \"" + sArchive + "\"");
throw new TSDeploymentException(
"undeploy failed for application \"" + sArchive + "\"");
}
dep2.removeConnectionFactory(modulesToUndeploy, p);
}
this.undeploy(sArchive);
}