@Override protected Context getJavaCompContext() { return javaEEComponent.getContext(); }
public Context getEnc() { return component.getContext(); }
@Override public Context getContext() { return this.javaEEComponent == null ? null : this.javaEEComponent.getContext(); }
public Context getEnc(final EJBContainer container) { return component.getContext(); }
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { try { if (AOPBasedSingletonContainer.this.javaComp == null) { throw new IllegalStateException( "java:comp is not expected to be used before CREATE of EJB container. Failing bean: " + AOPBasedSingletonContainer.this.getBeanClassName()); } return method.invoke(AOPBasedSingletonContainer.this.javaComp.getContext(), args); } catch (InvocationTargetException e) { throw e.getTargetException(); } } };
return (Context) Proxy.newProxyInstance(tccl, interfaces, handler); return this.javaComp.getContext();
private void unbindFromRelevantContext(String jndiName) throws NamingException Context ctx = this.javaEEComponent.getContext(); ctx = this.javaEEComponent.getContext();
protected void unbindSecurityDomainJndiBindings(WebApplication webApplication) { Thread currentThread = Thread.currentThread(); ClassLoader currentLoader = currentThread.getContextClassLoader(); try { currentThread.setContextClassLoader(webApplication.getMetaData().getENCLoader()); final Context envCtx = component.getContext(); unlinkSecurityDomain(webApplication.getMetaData().getSecurityDomain(), envCtx); } catch (final NamingException e) { log.error(e.getMessage(), e); } finally { currentThread.setContextClassLoader(currentLoader); } } }
private void bindInRelevantContext(String jndiName, Object jndiObject) throws NamingException Context ctx = this.javaEEComponent.getContext(); ctx = this.javaEEComponent.getContext();
Context javaCompCtx = component.getContext();