public AppInfo configureApplication(AppModule appModule) throws OpenEJBException { ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(appModule.getClassLoader()); try { return configurationFactory.configureApplication(appModule); } finally { Thread.currentThread().setContextClassLoader(oldClassLoader); } }
public ClientInfo configureApplication(ClientModule clientModule) throws OpenEJBException { ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(clientModule.getClassLoader()); try { return configurationFactory.configureApplication(clientModule); } finally { Thread.currentThread().setContextClassLoader(oldClassLoader); } }
public ClientInfo configureApplication(final ClientModule clientModule) throws OpenEJBException { final AppInfo appInfo = configureApplication(new AppModule(clientModule)); return appInfo.clients.get(0); }
public ConnectorInfo configureApplication(final ConnectorModule connectorModule) throws OpenEJBException { final AppInfo appInfo = configureApplication(new AppModule(connectorModule)); return appInfo.connectors.get(0); }
public WebAppInfo configureApplication(final WebModule webModule) throws OpenEJBException { final AppInfo appInfo = configureApplication(new AppModule(webModule)); return appInfo.webApps.get(0); }
public EjbJarInfo configureApplication(EjbModule ejbModule) throws OpenEJBException { ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(ejbModule.getClassLoader()); try { return configurationFactory.configureApplication(ejbModule); } finally { Thread.currentThread().setContextClassLoader(oldClassLoader); } }
public EjbJarInfo configureApplication(final EjbModule ejbModule) throws OpenEJBException { final AppInfo appInfo = configureApplication(new AppModule(ejbModule)); return appInfo.ejbJars.get(0); }
public EjbJarInfo configureApplication(final EjbModule ejbModule) throws OpenEJBException { final AppInfo appInfo = configureApplication(new AppModule(ejbModule)); return appInfo.ejbJars.get(0); }
public EjbJarInfo configureApplication(final EjbJar ejbJar) throws OpenEJBException { final EjbModule ejbModule = new EjbModule(ejbJar); return configureApplication(ejbModule); }
public EjbJarInfo configureApplication(final EjbJar ejbJar) throws OpenEJBException { final EjbModule ejbModule = new EjbModule(ejbJar); return configureApplication(ejbModule); }
public ConnectorInfo configureApplication(final ConnectorModule connectorModule) throws OpenEJBException { final AppInfo appInfo = configureApplication(new AppModule(connectorModule)); return appInfo.connectors.get(0); }
public EjbJarInfo configureApplication(EjbJar ejbJar) throws OpenEJBException { EjbModule ejbModule = new EjbModule(ejbJar); return configureApplication(ejbModule); }
public WebAppInfo configureApplication(final WebModule webModule) throws OpenEJBException { final AppInfo appInfo = configureApplication(new AppModule(webModule)); return appInfo.webApps.get(0); }
public ClientInfo configureApplication(final ClientModule clientModule) throws OpenEJBException { final AppInfo appInfo = configureApplication(new AppModule(clientModule)); return appInfo.clients.get(0); }
public EjbJarInfo configureApplication(EjbModule ejbModule) throws OpenEJBException { AppModule appModule = new AppModule(ejbModule.getClassLoader(), ejbModule.getJarLocation()); appModule.getEjbModules().add(ejbModule); AppInfo appInfo = configureApplication(appModule); return appInfo.ejbJars.get(0); }
public WebAppInfo configureApplication(WebModule webModule) throws OpenEJBException { AppModule appModule = new AppModule(webModule.getClassLoader(), webModule.getJarLocation()); appModule.getWebModules().add(webModule); AppInfo appInfo = configureApplication(appModule); return appInfo.webApps.get(0); }
public ConnectorInfo configureApplication(ConnectorModule connectorModule) throws OpenEJBException { AppModule appModule = new AppModule(connectorModule.getClassLoader(), connectorModule.getJarLocation()); appModule.getResourceModules().add(connectorModule); AppInfo appInfo = configureApplication(appModule); return appInfo.connectors.get(0); }
public ClientInfo configureApplication(ClientModule clientModule) throws OpenEJBException { AppModule appModule = new AppModule(clientModule.getClassLoader(), clientModule.getJarLocation()); appModule.getClientModules().add(clientModule); AppInfo appInfo = configureApplication(appModule); return appInfo.clients.get(0); }
public AppInfo configureApplication(File jarFile) throws OpenEJBException { logger.debug("Beginning load: " + jarFile.getAbsolutePath()); AppInfo appInfo; try { AppModule appModule = deploymentLoader.load(jarFile); appInfo = configureApplication(appModule); } catch (ValidationFailedException e) { logger.warning("configureApplication.loadFailed", jarFile.getAbsolutePath(), e.getMessage()); // DO not include the stacktrace in the message throw e; } catch (OpenEJBException e) { // DO NOT REMOVE THE EXCEPTION FROM THIS LOG MESSAGE // removing this message causes NO messages to be printed when embedded logger.warning("configureApplication.loadFailed", e, jarFile.getAbsolutePath(), e.getMessage()); throw e; } return appInfo; }
public void deployCore(final @Observes ContainerSystemPostCreate init) throws Exception { final SystemInstance systemInstance = SystemInstance.get(); // deploy our core module final ConfigurationFactory configurationFactory = systemInstance.getComponent(ConfigurationFactory.class); final Assembler assembler = systemInstance.getComponent(Assembler.class); final AppInfo appInfo = configurationFactory.configureApplication(createTribestreamCoreModule()); assembler.createApplication(appInfo); // just make it easier to get when we have a single persistence of alerts systemInstance.setComponent( KeyRepository.class, KeyRepository.class.cast( SystemInstance.get().getComponent(ContainerSystem.class).getJNDIContext().lookup("global/" + moduleName + "/KeyRepository"))); }