clusterViewManager.addObjectToWatch(objectName); } catch (Exception e) { LOGGER.error("Cannot retrieve the object for name {0}", objectName, e);
clusterViewManager.addObjectToWatch(objectName); try { itf = (Class<T>) clusterViewManager.getInterface(objectName);
private Object findClusteredObject(final String name) throws CMIContextException { try { clusterViewManager.addObjectToWatch(name); if(!clusterViewManager.isProxyEnabled(name)) { try { return findStubOrProxy(name); } catch (NamingException e) { LOGGER.error("Cannot get a proxy (or stub) for {0}.", name, e); throw new CMIContextException("Cannot get a proxy (or stub) for " + name, e); } } // Builds a CMI proxy CMIProxy cmiProxy; try { cmiProxy = CMIProxyFactory.newCMIProxy(clusterViewManager, name, protocol); } catch (Exception e) { LOGGER.error("Cannot get a CMI proxy for {0}.", name, e); throw new CMIContextException("Cannot get a CMI proxy for " + name, e); } // Returns the CMI proxy return cmiProxy; } catch (Exception e) { LOGGER.error("Cannot find the clustered object object {0}", name, e); throw new CMIContextException( "Cannot find the clustered object object " + name, e); } }