EnvironmentClassLoader parentLoader = _ejbContainer.getClassLoader();
Path workDir = _ejbContainer.getWorkDir();
JavaClassGenerator javaGen = new JavaClassGenerator();
// need to be compatible with enhancement
javaGen.setWorkDir(workDir);
javaGen.setParentLoader(parentLoader);
configureRelations();
for (EjbBeanConfigProxy proxy : _proxyList) {
EjbBean bean = _cfgBeans.get(proxy.getEJBName());
if (bean != null)
proxy.getBuilderProgram().configure(bean);
}
for (EjbBean bean : beanConfig) {
bean.init();
}
// Collections.sort(beanConfig, new BeanComparator());
for (EjbBean bean : beanConfig) {
bean.generate(javaGen, _ejbContainer.isAutoCompile());
}
javaGen.compilePendingJava();
} catch (RuntimeException e) {
throw e;
} catch (Exception e) {
throw ConfigException.create(e);
}