/** * Unbinds a naming context to a thread. * * @param name Name of the context */ public static void unbindThread(Object name) { unbindThread(name, null); }
/** * Unbinds a naming context to a thread. * * @param name Name of the context */ public static void unbindThread(Object name) { unbindThread(name, null); }
/** * Unbinds a naming context to a thread. * * @param name Name of the context */ public static void unbindThread(Object name) { unbindThread(name, null); }
/** * Unbinds a naming context to a thread. * * @param name Name of the context */ public static void unbindThread(Object name) { unbindThread(name, null); }
/** * Unbinds a naming context to a thread. * * @param name Name of the context * * @deprecated - unused */ @Deprecated public static void unbindThread(Object name) { unbindThread(name, null); }
/** * Unbinds a naming context to a thread. * * @param name Name of the context * * @deprecated - unused */ @Deprecated public static void unbindThread(Object name) { unbindThread(name, null); }
/** * Unbind thread. */ protected void unbindThread(ClassLoader oldContextClassLoader) { if (isUseNaming()) { ContextBindings.unbindThread(this, this); } Thread.currentThread().setContextClassLoader(oldContextClassLoader); }
/** * Unbind thread. */ private void unbindThread(ClassLoader oldContextClassLoader) { Thread.currentThread().setContextClassLoader(oldContextClassLoader); if (isUseNaming()) { ContextBindings.unbindThread(this, this); } }
/** * Unbind thread. */ protected void unbindThread(ClassLoader oldContextClassLoader) { if (isUseNaming()) { ContextBindings.unbindThread(this, this); } DirContextURLStreamHandler.unbindThread(); Thread.currentThread().setContextClassLoader(oldContextClassLoader); }
/** * Unbind thread. */ protected void unbindThread(ClassLoader oldContextClassLoader) { if (isUseNaming()) { ContextBindings.unbindThread(this, this); } DirContextURLStreamHandler.unbindThread(); Thread.currentThread().setContextClassLoader(oldContextClassLoader); }
/** * Unbind thread. */ protected void unbindThread(ClassLoader oldContextClassLoader) { if (isUseNaming()) { ContextBindings.unbindThread(this, this); } DirContextURLStreamHandler.unbindThread(); Thread.currentThread().setContextClassLoader(oldContextClassLoader); }
/** * Unbind thread. */ private void unbindThread(ClassLoader oldContextClassLoader) { Thread.currentThread().setContextClassLoader(oldContextClassLoader); oldContextClassLoader = null; if (isUseNaming()) { ContextBindings.unbindThread(this, this); } DirContextURLStreamHandler.unbind(); }
/** * Unbind thread. */ protected void unbindThread(ClassLoader oldContextClassLoader) { if (isUseNaming()) { ContextBindings.unbindThread(this, this); } DirContextURLStreamHandler.unbindThread(); Thread.currentThread().setContextClassLoader(oldContextClassLoader); }
/** * Unbind thread. */ protected void unbindThread(ClassLoader oldContextClassLoader) { if (isUseNaming()) { ContextBindings.unbindThread(this, this); } DirContextURLStreamHandler.unbindThread(); Thread.currentThread().setContextClassLoader(oldContextClassLoader); }
public void contextExited(ThreadContext exitedContext, ThreadContext reenteredContext) { // unbind the new context ContextBindings.unbindThread(OPENEJB_CONTEXT); // attempt to restore the old context Data data = exitedContext.get(Data.class); if (data != null && data.oldContextName != null) { try { ContextBindings.bindThread(data.oldContextName); } catch (NamingException e) { } } }
/** * Unbind thread and restore the specified context classloader. * * @param oldContextClassLoader the previous classloader */ protected void unbindThread(ClassLoader oldContextClassLoader) { if (isUseNaming()) { ContextBindings.unbindThread(this, getNamingToken()); } unbind(false, oldContextClassLoader); }
/** * Unbind thread and restore the specified context classloader. * * @param oldContextClassLoader the previous classloader */ protected void unbindThread(ClassLoader oldContextClassLoader) { if (isUseNaming()) { ContextBindings.unbindThread(this, getNamingToken()); } unbind(false, oldContextClassLoader); }
/** * {@inheritDoc} */ public void contextExited(ThreadContext exitedContext, ThreadContext reenteredContext) { // unbind the new context ContextBindings.unbindThread(OPENEJB_CONTEXT); // attempt to restore the old context Data data = exitedContext.get(Data.class); if (data != null && data.oldContextName != null) { try { ContextBindings.bindThread(data.oldContextName); } catch (NamingException e) { logger.error("Exception in method contextExited", e); } } }
/** * {@inheritDoc} */ public void contextExited(final ThreadContext exitedContext, final ThreadContext reenteredContext) { // unbind the new context ContextBindings.unbindThread(OPENEJB_CONTEXT, null); // attempt to restore the old context final Data data = exitedContext.get(Data.class); if (data != null && data.oldContextName != null) { try { ContextBindings.bindThread(data.oldContextName, null); } catch (final NamingException e) { logger.error("Exception in method contextExited", e); } } }