@Override public void run() { try { DEPLOYMENT_CONNECTOR_LOGGER.debugf("Stopping service %s", serviceName); WritableServiceBasedNamingStore.pushOwner(serviceName); unregisterAll(deploymentName); } finally { WritableServiceBasedNamingStore.popOwner(); context.complete(); } } };
@Override public void run() { try { // TODO -- one of the 3 previous synchronous calls to this method don't had the TCCL set, // but the other two don't. I (BES 2013/10/21) intepret from that that setting the TCCL // was not necessary and in caller that had it set it was an artifact of WritableServiceBasedNamingStore.pushOwner(serviceName); unregisterAll(deploymentName); } finally { WritableServiceBasedNamingStore.popOwner(); context.failed(ConnectorLogger.ROOT_LOGGER.failedToStartRaDeployment(cause, deploymentName)); } } };
@Override public void unregisterAll(String deploymentName) { super.unregisterAll(deploymentName); }
@Override public void unregisterAll(String deploymentName) { if (raName != null && deploymentServiceName != null) { ConnectorServices.unregisterDeployment(raName, deploymentServiceName); } if (raName != null) { ConnectorServices.unregisterResourceAdapterIdentifier(raName); } super.unregisterAll(deploymentName); }
@Override public void run() { try { DEPLOYMENT_CONNECTOR_LOGGER.debugf("Stopping service %s", serviceName); WritableServiceBasedNamingStore.pushOwner(serviceName); unregisterAll(deploymentName); } finally { WritableServiceBasedNamingStore.popOwner(); context.complete(); } } };
@Override public void run() { try { // TODO -- one of the 3 previous synchronous calls to this method don't had the TCCL set, // but the other two don't. I (BES 2013/10/21) intepret from that that setting the TCCL // was not necessary and in caller that had it set it was an artifact of WritableServiceBasedNamingStore.pushOwner(serviceName); unregisterAll(deploymentName); } finally { WritableServiceBasedNamingStore.popOwner(); context.failed(ConnectorLogger.ROOT_LOGGER.failedToStartRaDeployment(cause, deploymentName)); } } };
@Override public void unregisterAll(String deploymentName) { ConnectorServices.unregisterResourceAdapterIdentifier(deploymentName); super.unregisterAll(deploymentName); if (mdr != null && mdr.getValue() != null && deploymentName != null) { try { mdr.getValue().unregisterResourceAdapter(deploymentName); } catch (Throwable t) { DEPLOYMENT_CONNECTOR_LOGGER.debug("Exception during unregistering deployment", t); } } }