private boolean initializeProxy(CacheClientProxy l_proxy) throws IOException, CacheException { boolean status = false; if (!this.isProxyInInitializationMode(l_proxy)){ if (logger.isDebugEnabled()) { logger.debug("Initializing proxy: {}", l_proxy); } try { // Add client proxy to initialization list. This has to be done before // the queue is created so that events can be buffered here for delivery // to the queue once it's initialized (bug #41681 and others) addClientInitProxy(l_proxy); l_proxy.initializeMessageDispatcher(); // Initialization success. Add to client proxy list. addClientProxy(l_proxy); return true; } catch (RegionExistsException ree) { if (logger.isDebugEnabled()) { String name = ree.getRegion() != null ? ree.getRegion().getFullPath() : "null region"; logger.debug("Found RegionExistsException while initializing proxy. Region name: {}", name); } // This will return false; } finally { removeClientInitProxy(l_proxy); } } return status; }
private boolean initializeProxy(CacheClientProxy l_proxy) throws IOException, CacheException { boolean status = false; if (!this.isProxyInInitializationMode(l_proxy)){ if (this._logger.fineEnabled()) { this._logger.fine("Initializing proxy, proxy :" + l_proxy); } try { // Add client proxy to initialization list. This has to be done before // the queue is created so that events can be buffered here for delivery // to the queue once it's initialized (bug #41681 and others) addClientInitProxy(l_proxy); l_proxy.initializeMessageDispatcher(); // Initialization success. Add to client proxy list. addClientProxy(l_proxy); return true; } catch (RegionExistsException ree) { if (this._logger.fineEnabled()) { String name = (ree.getRegion() != null)?(ree.getRegion().getFullPath()): "null region"; this._logger.fine("Found RegionExistsException while initializing proxy." + " Region name :" + name); } // This will return false; } finally { removeClientInitProxy(l_proxy); } } return status; }