@Override protected Context getJavaCompContext() { return javaEEModule.getContext(); }
public Context getContext() { return module.getContext(); }
@Override public Context getContext() { return javaeeModule.getContext(); } };
private Context getContext() { if (this.javaeeModule == null) { throw new IllegalStateException("JavaEEModule is not set. Cannot return JNDI context"); } if (this.javaAppBinder) { return this.javaeeModule.getApplication().getContext(); } return this.javaeeModule.getContext(); } }
protected void unbindModule(View view) throws NamingException { bean.getModule().getContext().unbind(getModuleJNDIName(view.getBusinessInterface())); // unbind from the additional JNDI name, if the bean exposed just 1 view if (this.hasSingleView()) { bean.getModule().getContext().unbind(getModuleJNDIName(null)); } }
ctx = this.javaEEComponent.getModule().getContext();
ctx = this.javaEEComponent.getModule().getContext();
protected void bindModule(View view, Object proxy) throws NamingException { bind(bean.getModule().getContext(), getModuleJNDIName(view.getBusinessInterface()), proxy); // bind to an additional JNDI name (as specified by 4.4.1 section of EJB3.10 // when the bean exposes just 1 view if (this.hasSingleView()) { bind(bean.getModule().getContext(), getModuleJNDIName(null), proxy); } }