protected void jmxBind() { Registry.bind(getServiceName(), this); }
protected void createService() throws Exception { // note on design: We need to call it ourselves as opposed to // letting the client InvokerInterceptor look it // up through the use of Registry, the reason being including // the classes in the client. // If we move to a JNDI format (with local calls) for the // registry we could remove the call below InvokerInterceptor.setLocal(this); Registry.bind(serviceName, this); }
protected void jmxBind() { Registry.bind(getServiceName(), proxy); }
protected void startService() throws Exception { // Export the Invoker interface ObjectName name = super.getServiceName(); Registry.bind(name, this); // Make sure the invoker URL is valid super.checkInvokerURL(); log.debug("Bound HttpHA invoker for JMX node"); }
public void startService () throws Exception { // bind us in system registry // log.debug ("Starting Invalidation Manager " + this.getServiceName ().toString ()); org.jboss.system.Registry.bind (this.getServiceName ().toString (), this); this.hashcode = this.getServiceName ().hashCode (); }
private void createProxy() throws Exception{ delegateInvoker = (Invoker)Registry.lookup(jmxInvokerName); log.debug("Using delegate: " + delegateInvoker + " for invoker=" + jmxInvokerName); final ObjectName serviceName = getServiceName(); final Integer nameHash = Integer.valueOf(String.valueOf(serviceName.hashCode())); Registry.bind(nameHash, serviceName); Object cacheID = null; String proxyBindingName = null; String jndiName = null; final Class[] connectionFactoryInterface = cf.getClass().getInterfaces(); final ArrayList interceptorList = new ArrayList(); interceptorList.add(ClientMethodInterceptor.class); interceptorList.add(InvokerInterceptor.class); ClassLoader loader = Thread.currentThread().getContextClassLoader(); GenericProxyFactory proxyFactory = new GenericProxyFactory(); theProxy = proxyFactory.createProxy(cacheID, serviceName, delegateInvoker, jndiName, proxyBindingName, interceptorList, loader, connectionFactoryInterface); }
protected void startService() throws Exception { checkInvokerURL(); Invoker delegateInvoker = new HttpInvokerProxy(invokerURL); // Export the Invoker interface ObjectName name = super.getServiceName(); Registry.bind(name, delegateInvoker); log.debug("Bound Http invoker for JMX node"); }
Registry.bind(new Integer(serviceName.hashCode()), serviceName);
Registry.bind(new Integer(serviceName.hashCode()), serviceName);
ObjectName targetName = getServiceName(); Integer nameHash = new Integer(targetName.hashCode()); Registry.bind(nameHash, targetName);
Registry.bind(nameHash, getServiceName());
Registry.bind(nameHash, jmxInvokerName);
Registry.bind(new Integer(jmxHash), jmxName); log.debug("Bound jmxName=" + jmxName + ", hash=" + jmxHash + "into Registry");