/** * Start the application. */ public void start() { ClassLoader origCL = Thread.currentThread().getContextClassLoader(); try { Thread.currentThread().setContextClassLoader(_deployUnit.getClassLoader()); _deployment.init(createDomain(_deployment.getConfig(), _domainManager)); _deployment.start(); } finally { Thread.currentThread().setContextClassLoader(origCL); } }
/** * Start the SwitchYard application. */ public void start() { _logger.debug("Starting SwitchYard application '" + _deployment.getConfig().getQName() + "'."); _deployment.init(_domain, _activatorList); _deployment.start(); _logger.debug("SwitchYard application '" + _deployment.getConfig().getQName() + "' started."); }
/** * {@link AfterDeploymentValidation} CDI event observer. * * @param event CDI Event instance. */ public void afterDeploymentValidation(@Observes AfterDeploymentValidation event) { InputStream swConfigStream; try { swConfigStream = Classes.getResourceAsStream(AbstractDeployment.SWITCHYARD_XML, getClass()); } catch (IOException ioe) { swConfigStream = null; } if (swConfigStream != null) { try { _deployment = new Deployment(swConfigStream); } catch (java.io.IOException ioEx) { throw CDIDeployMessages.MESSAGES.failedReadingConfig(ioEx); } finally { try { swConfigStream.close(); } catch (IOException ioEx) { ioEx.getMessage(); // keeps checkstyle happy } } ServiceDomain domain = new ServiceDomainManager().createDomain(); _deployment.init(domain, ActivatorLoader.createActivators(domain)); _deployment.start(); } }
/** * {@link AfterDeploymentValidation} CDI event observer. * * @param event CDI Event instance. */ public void afterDeploymentValidation(@Observes AfterDeploymentValidation event) { InputStream swConfigStream; try { swConfigStream = Classes.getResourceAsStream(AbstractDeployment.SWITCHYARD_XML, getClass()); } catch (IOException ioe) { swConfigStream = null; } if (swConfigStream != null) { try { _deployment = new Deployment(swConfigStream); } catch (java.io.IOException ioEx) { throw CDIDeployMessages.MESSAGES.failedReadingConfig(ioEx); } finally { try { swConfigStream.close(); } catch (IOException ioEx) { ioEx.getMessage(); // keeps checkstyle happy } } ServiceDomain domain = new ServiceDomainManager().createDomain(); _deployment.init(domain, ActivatorLoader.createActivators(domain)); _deployment.start(); } }
_deployment.init(_domain, activators); _deployment.start(); } finally {
_deployment.init(_domain, activators); _deployment.start(); } finally {
_deployment.init(_appServiceDomain, activators); setDeploymentState(SwitchYardDeploymentState.STARTING); _deployment.start();
_deployment.init(_appServiceDomain, activators); setDeploymentState(SwitchYardDeploymentState.STARTING); _deployment.start();