protected Object businessMethod(Class interfce, Method method, Object[] args, Object proxy) throws Throwable { // checkAuthorization(method); return container.invoke(deploymentID, interfaceType, interfce, method, args, primaryKey); }
protected Object create(final Class interfce, final Method method, final Object[] args, final Object proxy) throws Throwable { if (container.getBeanContext(deploymentID) == null) { final BeanContext bc = getBeanContext(); synchronized (bc.getId()) { if (container.getBeanContext(deploymentID) == null) { container.deploy(bc); container.start(bc); } } } final ProxyInfo proxyInfo = (ProxyInfo) container.invoke(deploymentID, interfaceType, interfce, method, args, null); assert proxyInfo != null : "Container returned a null ProxyInfo: ContainerID=" + container.getContainerID(); return createProxy(proxyInfo.getPrimaryKey(), getMainInterface()); }
public org.apache.openejb.DeploymentInfo [] deployments() { return container.deployments(); }
protected Object create(Class interfce, Method method, Object[] args, Object proxy) throws Throwable { ProxyInfo proxyInfo = (ProxyInfo) container.invoke(deploymentID, interfaceType, interfce, method, args, null); assert proxyInfo != null : "Container returned a null ProxyInfo: ContainerID=" + container.getContainerID(); return createProxy(proxyInfo.getPrimaryKey()); }
public Object getContainerID() { return container.getContainerID(); }
public void deploy(org.apache.openejb.DeploymentInfo info) throws OpenEJBException { container.deploy(info); }
protected Object synchronizedBusinessMethod(final Class<?> interfce, final Method method, final Object[] args) throws OpenEJBException { return container.invoke(deploymentID, interfaceType, interfce, method, args, primaryKey); }
protected Object create(final Class interfce, final Method method, final Object[] args, final Object proxy) throws Throwable { if (container.getBeanContext(deploymentID) == null) { final BeanContext bc = getBeanContext(); synchronized (bc.getId()) { if (container.getBeanContext(deploymentID) == null) { container.deploy(bc); container.start(bc); } } } final ProxyInfo proxyInfo = (ProxyInfo) container.invoke(deploymentID, interfaceType, interfce, method, args, null); assert proxyInfo != null : "Container returned a null ProxyInfo: ContainerID=" + container.getContainerID(); return createProxy(proxyInfo.getPrimaryKey(), getMainInterface()); }
public TomcatJndiSupport(RpcContainer container) throws OpenEJBException { super(container); try { ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); Class contextBindings = classLoader.loadClass("org.apache.naming.ContextBindings"); bindContext = contextBindings.getMethod("bindContext", Object.class, Context.class, Object.class); bindThread = contextBindings.getMethod("bindThread", Object.class, Object.class); unbindThread = contextBindings.getMethod("unbindThread", Object.class, Object.class); } catch (ClassNotFoundException e) { throw new OpenEJBException("Unable to setup Tomcat JNDI support. Support requires the org.apache.naming.ContextBindings class to be available."); } catch (NoSuchMethodException e) { throw new OpenEJBException("Unable to setup Tomcat JNDI support. Method of org.apache.naming.ContextBindings was not found:" + e.getMessage()); } DeploymentInfo[] deploymentInfos = container.deployments(); for (DeploymentInfo deploymentInfo : deploymentInfos) { CoreDeploymentInfo deployment = (CoreDeploymentInfo) deploymentInfo; setupDeployment(deployment); } }
public Object invoke(Object deployID, Class callInterface, Method callMethod, Object [] args, Object primKey) throws OpenEJBException { return container.invoke(deployID, callInterface, callMethod, args, primKey); }
protected Object synchronizedBusinessMethod(final Class<?> interfce, final Method method, final Object[] args) throws OpenEJBException { return container.invoke(deploymentID, interfaceType, interfce, method, args, primaryKey); }
private Object homeMethodInvoke(final Class interfce, final Method method, final Object[] args) throws OpenEJBException { return container.invoke(deploymentID, interfaceType, interfce, method, args, null); }
private Object homeMethodInvoke(final Class interfce, final Method method, final Object[] args) throws OpenEJBException { return container.invoke(deploymentID, interfaceType, interfce, method, args, null); }
public Object invoke(Object deployID, InterfaceType callType, Class callInterface, Method callMethod, Object[] args, Object primKey) throws OpenEJBException { return container.invoke(deployID, callType, callInterface, callMethod, args, primKey); }
public Object invoke(Object deployID, Method callMethod, Object [] args, Object primKey, Object securityIdentity) throws OpenEJBException { return container.invoke(deployID, callMethod.getDeclaringClass(), callMethod, args, primKey); }
protected Object homeMethod(Class interfce, Method method, Object[] args, Object proxy) throws Throwable { checkAuthorization(method); return container.invoke(deploymentID, interfaceType, interfce, method, args, null); }
@Override public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable { final BeanContext beanContext = getBeanContext(); final RpcContainer container = RpcContainer.class.cast(beanContext.getContainer()); return container.invoke(beanContext.getDeploymentID(), beanContext.getInterfaceType(method.getDeclaringClass()), method.getDeclaringClass(), method, args, null); }
@Override public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable { final BeanContext beanContext = getBeanContext(); final RpcContainer container = RpcContainer.class.cast(beanContext.getContainer()); return container.invoke(beanContext.getDeploymentID(), beanContext.getInterfaceType(method.getDeclaringClass()), method.getDeclaringClass(), method, args, null); }
@Override protected Object remove(final Class interfce, final Method method, final Object[] args, final Object proxy) throws Throwable { checkAuthorization(method); final Object value = container.invoke(deploymentID, interfaceType, interfce, method, args, primaryKey); invalidateAllHandlers(getRegistryId()); return value; }
protected Object remove(final Class interfce, final Method method, final Object[] args, final Object proxy) throws Throwable { checkAuthorization(method); final Object value = container.invoke(deploymentID, interfaceType, interfce, method, args, primaryKey); /* * This operation takes care of invalidating all the EjbObjectProxyHanders associated with * the same RegistryId. See this.createProxy(). */ invalidateAllHandlers(getRegistryId()); return value; }