public void invoke(Endpoint ep, Invocation epInv) throws Exception { try { Dispatcher dispatcher = Dispatcher.singleton; StatelessContainer container = (StatelessContainer)dispatcher.getRegistered(objectName.getCanonicalName()); Class beanClass = container.getBeanClass(); Method method = getImplMethod(beanClass, epInv.getJavaMethod()); Object[] args = epInv.getArgs(); MethodInfo info = container.getMethodInfo(method); EJBContainerInvocation<StatelessContainer, StatelessBeanContext> ejb3Inv = new EJBContainerInvocation<StatelessContainer, StatelessBeanContext>(info); ejb3Inv.setAdvisor(container); ejb3Inv.setArguments(args); ejb3Inv.setContextCallback(new CallbackImpl(epInv)); Object retObj = ejb3Inv.invokeNext(); epInv.setReturnValue(retObj); } catch (Throwable th) { handleInvocationException(th); } }
public void invoke(Endpoint ep, Invocation epInv) throws Exception { try { Dispatcher dispatcher = Dispatcher.singleton; StatelessContainer container = (StatelessContainer)dispatcher.getRegistered(objectName.getCanonicalName()); Class beanClass = container.getBeanClass(); Method method = getImplMethod(beanClass, epInv.getJavaMethod()); Object[] args = epInv.getArgs(); MethodInfo info = container.getMethodInfo(method); EJBContainerInvocation<StatelessContainer, StatelessBeanContext> ejb3Inv = new EJBContainerInvocation<StatelessContainer, StatelessBeanContext>(info); ejb3Inv.setAdvisor(container); ejb3Inv.setArguments(args); ejb3Inv.setContextCallback(new CallbackImpl(epInv)); Object retObj = ejb3Inv.invokeNext(); epInv.setReturnValue(retObj); } catch (Throwable th) { handleInvocationException(th); } }
public void invoke(Endpoint ep, Invocation epInv) throws Exception { try { Dispatcher dispatcher = Dispatcher.singleton; StatelessContainer container = (StatelessContainer)dispatcher.getRegistered(objectName.getCanonicalName()); Class beanClass = container.getBeanClass(); Method method = getImplMethod(beanClass, epInv.getJavaMethod()); Object[] args = epInv.getArgs(); MethodInfo info = container.getMethodInfo(method); EJBContainerInvocation<StatelessContainer, StatelessBeanContext> ejb3Inv = new EJBContainerInvocation<StatelessContainer, StatelessBeanContext>(info); ejb3Inv.setAdvisor(container); ejb3Inv.setArguments(args); ejb3Inv.setContextCallback(new CallbackImpl(epInv)); Object retObj = ejb3Inv.invokeNext(); epInv.setReturnValue(retObj); } catch (Throwable th) { handleInvocationException(th); } }