protected void initializeFromXML() { // create cache/region (and connect to the DS) if (CacheHelper.getCache() == null) { try { // Auto-reconnect requires that the cache be described in cache.xml. String xmlFileName = getXmlFileName(); generateCacheXml(); CacheHelper.createCacheFromXml(xmlFileName); } catch (ManagementException me) { if (me.getCause() instanceof RegionDestroyedException) { // re-throw and let the caller handle this throw me; } } catch (SystemConnectException sce) { // re-throw and let caller handle this throw sce; } if (SBUtil.isLeadMember()) { Log.getLogWriter().info("This VM is currently the LeadMember"); } String regionConfig = ConfigPrms.getRegionConfig(); RegionDescription rd = RegionHelper.getRegionDescription(regionConfig); String regionName = rd.getRegionName(); aRegion = RegionHelper.getRegion(regionName); performInitialChecks(regionName); } }
CacheHelper.createCache(ConfigPrms.getCacheConfig()); } catch (ManagementException me) { if (me.getCause() instanceof RegionDestroyedException) {