public void destroy() { if(clientpool != null) { clientpool.destroy(); } super.destroy(); }
invoker.destroy(); InvokerRegistry.destroyServerInvoker(invoker); invoker = null;
super.destroy(); try
/** * Destroys the connector. * * @jmx.managed-operation */ public void destroy() { if (isStarted) { stop(); } if (invoker != null) { invoker.stop(); invoker.destroy(); InvokerRegistry.destroyServerInvoker(invoker); invoker = null; } isCreated = false; }
/** * Creates the connector. * * @jmx.managed-operation */ public void create() throws Exception { if (!isCreated) { try { init(); isCreated = true; } catch (Exception e) { // unwind create process if (invoker != null) { invoker.stop(); invoker.destroy(); InvokerRegistry.destroyServerInvoker(invoker); invoker = null; } isCreated = false; throw e; } } }