public void invoke(Endpoint ep, Invocation epInv) throws Exception { log.debug("Invoke: " + epInv.getJavaMethod().getName()); try { InvocationContext invContext = epInv.getInvocationContext(); Object targetBean = invContext.getTargetBean(); Class implClass = targetBean.getClass(); Method seiMethod = epInv.getJavaMethod(); Method implMethod = getImplMethod(implClass, seiMethod); Object[] args = epInv.getArgs(); Object retObj = implMethod.invoke(targetBean, args); epInv.setReturnValue(retObj); } catch (Exception e) { handleInvocationException(e); } } }
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 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; }
Method implMethod = getImplMethod(implClass, seiMethod); handleInvocationException(e);
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; }
Method implMethod = getImplMethod(implClass, seiMethod); handleInvocationException(e);