@Override public void setup(Map<String, Object> properties) { NamespaceContextSelector.pushCurrentSelector(namespaceSelector); WritableServiceBasedNamingStore.pushOwner(deploymentUnitServiceName); }
@Override public ResetContextHandle setup() throws IllegalStateException { if(namespaceContextSelector != null) { NamespaceContextSelector.pushCurrentSelector(namespaceContextSelector); } if(duServiceName != null) { WritableServiceBasedNamingStore.pushOwner(duServiceName); } return this; }
@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)); } } };
public Object processInvocation(final InterceptorContext context) throws Exception { NamespaceContextSelector.pushCurrentSelector(selector); try { WritableServiceBasedNamingStore.pushOwner(deploymentUnitServiceName); try { return context.proceed(); } finally { WritableServiceBasedNamingStore.popOwner(); } } finally { NamespaceContextSelector.popCurrentSelector(); } } }
@Override public void run() { ClassLoader old = WildFlySecurityManager.getCurrentContextClassLoaderPrivileged(); try { WritableServiceBasedNamingStore.pushOwner(duServiceName); WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(toUse); unregisterAll(deploymentName); } finally { try { context.failed(ConnectorLogger.ROOT_LOGGER.failedToStartRaDeployment(cause, deploymentName)); } finally { WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(old); WritableServiceBasedNamingStore.popOwner(); } } } };
try { try { WritableServiceBasedNamingStore.pushOwner(duServiceName); WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(classLoader); raDeployment = raDeployer.doDeploy();
WritableServiceBasedNamingStore.pushOwner(duServiceName); ClassLoader old = WildFlySecurityManager.getCurrentContextClassLoaderPrivileged(); try {
@Override public void setup(Map<String, Object> properties) { NamespaceContextSelector.pushCurrentSelector(namespaceSelector); WritableServiceBasedNamingStore.pushOwner(deploymentUnitServiceName); }
@Override public void setup(Map<String, Object> properties) { NamespaceContextSelector.pushCurrentSelector(namespaceSelector); WritableServiceBasedNamingStore.pushOwner(deploymentUnitServiceName); }
@Override public void setup(Map<String, Object> properties) { NamespaceContextSelector.pushCurrentSelector(namespaceSelector); WritableServiceBasedNamingStore.pushOwner(deploymentUnitServiceName); }
@Override public ResetContextHandle setup() throws IllegalStateException { if(namespaceContextSelector != null) { NamespaceContextSelector.pushCurrentSelector(namespaceContextSelector); } if(duServiceName != null) { WritableServiceBasedNamingStore.pushOwner(duServiceName); } return this; }
@Override public ResetContextHandle setup() throws IllegalStateException { if(namespaceContextSelector != null) { NamespaceContextSelector.pushCurrentSelector(namespaceContextSelector); } if(duServiceName != null) { WritableServiceBasedNamingStore.pushOwner(duServiceName); } return this; }
@Override public void run() { try { DEPLOYMENT_CONNECTOR_LOGGER.debugf("Stopping service %s", serviceName); WritableServiceBasedNamingStore.pushOwner(serviceName); unregisterAll(deploymentName); } finally { WritableServiceBasedNamingStore.popOwner(); context.complete(); } } };
/** * Unregister the mbean from the mbean server. * * @param context The stop context */ public synchronized void stop(StopContext context) { if(objectName == null){ ROOT_LOGGER.cannotUnregisterObject(); } final MBeanServer mBeanServer = getMBeanServer(); WritableServiceBasedNamingStore.pushOwner(duServiceName); try { mBeanServer.unregisterMBean(objectName); } catch (Exception e) { ROOT_LOGGER.unregistrationFailure(e, objectName); } finally { WritableServiceBasedNamingStore.popOwner(); } }
public Object processInvocation(final InterceptorContext context) throws Exception { NamespaceContextSelector.pushCurrentSelector(selector); try { WritableServiceBasedNamingStore.pushOwner(deploymentUnitServiceName); try { return context.proceed(); } finally { WritableServiceBasedNamingStore.popOwner(); } } finally { NamespaceContextSelector.popCurrentSelector(); } } }
public Object processInvocation(final InterceptorContext context) throws Exception { NamespaceContextSelector.pushCurrentSelector(selector); try { WritableServiceBasedNamingStore.pushOwner(deploymentUnitServiceName); try { return context.proceed(); } finally { WritableServiceBasedNamingStore.popOwner(); } } finally { NamespaceContextSelector.popCurrentSelector(); } } }
public Object processInvocation(final InterceptorContext context) throws Exception { NamespaceContextSelector.pushCurrentSelector(selector); try { WritableServiceBasedNamingStore.pushOwner(deploymentUnitServiceName); try { return context.proceed(); } finally { WritableServiceBasedNamingStore.popOwner(); } } finally { NamespaceContextSelector.popCurrentSelector(); } } }
@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 run() { ClassLoader old = WildFlySecurityManager.getCurrentContextClassLoaderPrivileged(); try { WritableServiceBasedNamingStore.pushOwner(duServiceName); WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(toUse); unregisterAll(deploymentName); } finally { try { context.failed(ConnectorLogger.ROOT_LOGGER.failedToStartRaDeployment(cause, deploymentName)); } finally { WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(old); WritableServiceBasedNamingStore.popOwner(); } } } };