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 synchronizedBusinessMethod(final Class<?> interfce, final Method method, final Object[] args) throws OpenEJBException { return container.invoke(deploymentID, interfaceType, interfce, method, args, primaryKey); }
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 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 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()); }
@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); /* * This operation takes care of invalidating all the EjbObjectProxyHanders associated with * the same RegistryId. See this.createProxy(). */ 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); invalidateAllHandlers(getRegistryId()); return value; }
protected Object remove(Class interfce, Method method, Object[] args, Object proxy) throws Throwable { checkAuthorization(method); 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; }
protected Object remove(Class interfce, Method method, Object[] args, Object proxy) throws Throwable { checkAuthorization(method); Object value = container.invoke(deploymentID, interfaceType, interfce, method, args, primaryKey); invalidateAllHandlers(getRegistryId()); return value; }
protected Object remove(Class interfce, Method method, Object[] args, Object proxy) throws Throwable { checkAuthorization(method); 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; }
@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); invalidateAllHandlers(getRegistryId()); return value; }
protected void doEjbHome_METHOD(final EJBRequest req, final EJBResponse res) throws Exception { final CallContext call = CallContext.getCallContext(); final RpcContainer c = (RpcContainer) call.getBeanContext().getContainer(); final Object result = c.invoke( req.getDeploymentId(), InterfaceType.EJB_HOME, req.getInterfaceClass(), req.getMethodInstance(), req.getMethodParameters(), req.getPrimaryKey() ); res.setResponse(req.getVersion(), ResponseCodes.EJB_OK, result); }
protected void doEjbObject_REMOVE(final EJBRequest req, final EJBResponse res) throws Exception { final CallContext call = CallContext.getCallContext(); final RpcContainer c = (RpcContainer) call.getBeanContext().getContainer(); c.invoke( req.getDeploymentId(), InterfaceType.EJB_OBJECT, req.getInterfaceClass(), req.getMethodInstance(), req.getMethodParameters(), req.getPrimaryKey() ); res.setResponse(req.getVersion(), ResponseCodes.EJB_OK, null); }
protected void doEjbHome_REMOVE_BY_HANDLE(final EJBRequest req, final EJBResponse res) throws Exception { final CallContext call = CallContext.getCallContext(); final RpcContainer c = (RpcContainer) call.getBeanContext().getContainer(); c.invoke( req.getDeploymentId(), InterfaceType.EJB_HOME, req.getInterfaceClass(), req.getMethodInstance(), req.getMethodParameters(), req.getPrimaryKey() ); res.setResponse(req.getVersion(), ResponseCodes.EJB_OK, null); }
protected void doEjbHome_REMOVE_BY_PKEY(final EJBRequest req, final EJBResponse res) throws Exception { final CallContext call = CallContext.getCallContext(); final RpcContainer c = (RpcContainer) call.getBeanContext().getContainer(); c.invoke( req.getDeploymentId(), InterfaceType.EJB_HOME, req.getInterfaceClass(), req.getMethodInstance(), req.getMethodParameters(), req.getPrimaryKey() ); res.setResponse(req.getVersion(), ResponseCodes.EJB_OK, null); }