public InvocationHandler newInvocationHandler(InvocationType type) { InvocationHandler handler = null; switch(type) { case JAXRPC_JSE: handler = new DefaultInvocationHandlerJAXRPC(); break; case JAXRPC_EJB21: handler = new InvocationHandlerEJB21(); break; case JAXRPC_MDB21: handler = new InvocationHandlerMDB21(); break; case JAXWS_JSE: handler = new DefaultInvocationHandlerJAXWS(); break; case JAXWS_EJB21: handler = new InvocationHandlerEJB21(); break; case JAXWS_EJB3: handler = new InvocationHandlerEJB3(); } if(null == handler) throw new IllegalArgumentException("Unable to resolve spi.invocation.InvocationHandler for type " +type); return handler; }
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); } }
public InvocationHandler newInvocationHandler(InvocationType type) { InvocationHandler handler = null; switch(type) { case JAXRPC_JSE: handler = new InvocationHandlerJAXRPC(); break; case JAXRPC_EJB21: handler = new InvocationHandlerEJB21(); break; case JAXRPC_MDB21: handler = new InvocationHandlerMDB21(); break; case JAXWS_JSE: handler = new InvocationHandlerJAXWS(); break; case JAXWS_EJB3: handler = new InvocationHandlerEJB3(); break; case JAXWS_MDB3: handler = new InvocationHandlerMDB3(); break; } if(null == handler) throw new IllegalArgumentException("Unable to resolve spi.invocation.InvocationHandler for type " +type); return handler; }
public InvocationHandler newInvocationHandler(InvocationType type) { InvocationHandler handler = null; switch(type) { case JAXRPC_JSE: handler = new InvocationHandlerJAXRPC(); break; case JAXRPC_EJB21: handler = new InvocationHandlerEJB21(); break; case JAXRPC_MDB21: handler = new InvocationHandlerMDB21(); break; case JAXWS_JSE: handler = new InvocationHandlerJAXWS(); break; case JAXWS_EJB3: handler = new InvocationHandlerEJB3(); break; case JAXWS_MDB3: handler = new InvocationHandlerMDB3(); break; } if(null == handler) throw new IllegalArgumentException("Unable to resolve spi.invocation.InvocationHandler for type " +type); return handler; }