ejbModule.getAltDDs().put("geronimo-openejb.xml", xmlCursor.xmlText());
}
}
// Read in the deploument desiptor files
ReadDescriptors readDescriptors = new ReadDescriptors();
try {
Thread currentThread = Thread.currentThread();
ClassLoader cl = currentThread.getContextClassLoader();
currentThread.setContextClassLoader(getClass().getClassLoader());
try {
readDescriptors.deploy(appModule);
} finally {
currentThread.setContextClassLoader(cl);
}
} catch (OpenEJBException e) {
throw new DeploymentException("Failed parsing descriptors for module: " + moduleFile.getName(), e);