private AppInfo configureApplication(AppModule appModule, EjbModule ejbModule, Configuration configuration) throws OpenEJBException { OpenEjbConfiguration openEjbConfiguration = new OpenEjbConfiguration(); openEjbConfiguration.containerSystem = new ContainerSystemInfo(); openEjbConfiguration.facilities = new FacilitiesInfo(); boolean offline = true; ConfigurationFactory.Chain chain = new ConfigurationFactory.Chain(); ConfigurationFactory configurationFactory = new ConfigurationFactory(offline, chain, openEjbConfiguration); buildChain(offline, ejbModule.getPreAutoConfigDeployer(), SystemInstance.get().getOptions(), configurationFactory, chain); ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(appModule.getClassLoader()); try { addContainerInfos(configuration, openEjbConfiguration.containerSystem, configurationFactory); addResourceAdapterMDBInfos(configuration, openEjbConfiguration.containerSystem, configurationFactory); //process resource adapters return configurationFactory.configureApplication(appModule); } finally { Thread.currentThread().setContextClassLoader(oldClassLoader); } }
Chain chain = new Chain();
final AppContextConfigDeployer appContextConfigDeployer = new AppContextConfigDeployer(annotationDeployer.getEnvEntriesPropertiesDeployer(), beanProperties); final Chain chain = new Chain();
final AppContextConfigDeployer appContextConfigDeployer = new AppContextConfigDeployer(annotationDeployer.getEnvEntriesPropertiesDeployer(), beanProperties); final Chain chain = new Chain();
public EjbModule(org.apache.openejb.config.EjbModule ejbModule, boolean standAlone, AbstractName moduleName, String name, Environment environment, JarFile moduleFile, String targetPath, String originalSpecDD, EjbJar specDD, OpenejbGeronimoEjbJarType vendorDD, Map<JndiKey, Map<String, Object>> jndiContext, Module parentModule, boolean shareJndi) { super(standAlone, moduleName, name, environment, moduleFile, targetPath, specDD, vendorDD, originalSpecDD, jndiContext, parentModule); this.ejbModule = ejbModule; this.ejbModule.setStandaloneModule(standAlone); preAutoConfigDeployer = new ConfigurationFactory.Chain(); this.shareJndi = shareJndi; }