private void ConfigHotDeployCheck() { bool enableHotDeploy = false; XmlTextReader reader = null; try { reader = new XmlTextReader(GetConfigFilePath()); XPathDocument xpathDoc = new XPathDocument(reader); XPathNavigator navigator = xpathDoc.CreateNavigator(); XPathNodeIterator nodeIterator = navigator.Select("/configuration/weborb[@hotDeploy]"); if (nodeIterator != null && nodeIterator.Count == 1) { nodeIterator.MoveNext(); String value = nodeIterator.Current.GetAttribute("hotDeploy", ""); if (value.Equals("yes")) { enableHotDeploy = true; } } } catch (Exception) { } finally { if (reader != null) { reader.Close(); } } if (enableHotDeploy) { DeploymentMode.GetConfigurator().EnableConfigHotDeploy(this); } }
private void Initialize(ArrayList sectionToConfig) { lock (_initializeLock) { WebORBConfigurator configurator = DeploymentMode.GetConfigurator(); configObjects = configurator.Configure(this, sectionToConfig); new FlexDynamicServiceConfig().Configure(GetFlexConfigPath(), this); new FlexRemotingServiceConfig().Configure(GetFlexConfigPath(), this); new FlexDataServiceConfig().Configure(GetFlexConfigPath(), this); new FlexMessagingServiceConfig().Configure(GetFlexConfigPath(), this); new FlexServicesConfig().Configure(GetFlexConfigPath(), this); new FlexWeborbServicesConfig().Configure(GetFlexConfigPath(), this); getHandlers().LockLicense(); ConfigHotDeployCheck(); if (Initialized != null) { Initialized(); } } }