/** * Unbind context name. * * @param name Name of the context */ public static void unbindContext(Object name) { unbindContext(name, null); }
/** * Unbind context name. * * @param name Name of the context */ public static void unbindContext(Object name) { unbindContext(name, null); }
/** * Unbind context name. * * @param name Name of the context */ public static void unbindContext(Object name) { unbindContext(name, null); }
/** * Unbind context name. * * @param name Name of the context */ public static void unbindContext(Object name) { unbindContext(name, null); }
/** * Unbind context name. * * @param name Name of the context * * @deprecated - unused */ @Deprecated public static void unbindContext(Object name) { unbindContext(name, null); }
/** * Unbind context name. * * @param name Name of the context * * @deprecated - unused */ @Deprecated public static void unbindContext(Object name) { unbindContext(name, null); }
public void contextEntered(ThreadContext oldContext, ThreadContext newContext) { // save off the old context if possible try { Data data = new Data(getThreadName()); newContext.set(Data.class, data); } catch (NamingException ignored) { } // set the new context try { ContextBindings.bindThread(OPENEJB_CONTEXT); } catch (NamingException e) { ContextBindings.unbindContext(OPENEJB_CONTEXT); throw new IllegalArgumentException("Unable to bind OpenEJB enc"); } }
/** * {@inheritDoc} */ public void contextEntered(final ThreadContext oldContext, final ThreadContext newContext) { // save off the old context if possible try { final Data data = new Data(getThreadName()); newContext.set(Data.class, data); } catch (final NamingException ignored) { // no-op } // set the new context try { ContextBindings.bindThread(OPENEJB_CONTEXT, null); } catch (final NamingException e) { ContextBindings.unbindContext(OPENEJB_CONTEXT, null); throw new IllegalArgumentException("Unable to bind OpenEJB enc"); } }
/** * {@inheritDoc} */ public void contextEntered(ThreadContext oldContext, ThreadContext newContext) { // save off the old context if possible try { Data data = new Data(getThreadName()); newContext.set(Data.class, data); } catch (NamingException ignored) { } // set the new context try { ContextBindings.bindThread(OPENEJB_CONTEXT); } catch (NamingException e) { ContextBindings.unbindContext(OPENEJB_CONTEXT); throw new IllegalArgumentException("Unable to bind OpenEJB enc"); } }
ContextBindings.unbindContext(container, container);
ContextBindings.unbindContext(container, container);
ContextBindings.unbindContext(container, container);
ContextBindings.unbindContext(container, container);
ContextBindings.unbindContext(container, token);
ContextBindings.unbindContext(container, container);
ContextBindings.unbindContext(container, container);
ContextBindings.unbindContext(container, token);
ContextBindings.unbindContext(container, container);
ContextBindings.unbindContext(container, container);