Package org.jboss.wsf.spi.invocation.integration

Examples of org.jboss.wsf.spi.invocation.integration.ServiceEndpointContainer


   {
      try
      {
         // prepare for invocation
         this.onBeforeInvocation(wsInvocation);
         final ServiceEndpointContainer ejbContainer = this.getEjb3Container();
         final InvocationContextCallback invocationCallback = new EJB3InvocationContextCallback(wsInvocation);
         final Class<?> implClass = ejbContainer.getServiceImplementationClass();
         final Method seiMethod = wsInvocation.getJavaMethod();
         final Method implMethod = this.getImplMethod(implClass, seiMethod);
         final Object[] args = wsInvocation.getArgs();

         // invoke method
         final Object retObj = ejbContainer.invokeEndpoint(implMethod, args, invocationCallback);
         wsInvocation.setReturnValue(retObj);
      }
      catch (Throwable t)
      {
         this.log.error("Method invocation failed with exception: " + t.getMessage(), t);
View Full Code Here


   public void invoke(Endpoint ep, Invocation wsInv) throws Exception
   {
      try
      {        
         ControllerContext context = houston.getInstalledContext(objectName.getCanonicalName());
         ServiceEndpointContainer apiAdapter = ServiceEndpointContainerApiAdapter.createInstance(context.getTarget());

         Class beanClass = apiAdapter.getServiceImplementationClass();
         Method method = getImplMethod(beanClass, wsInv.getJavaMethod());
         Object[] args = wsInv.getArgs();
         InvocationContextCallback invProps = new EJB3InvocationContextCallback(wsInv);

         Object retObj = apiAdapter.invokeEndpoint(method, args, invProps);

         wsInv.setReturnValue(retObj);
      }
      catch (Throwable th)
      {
View Full Code Here

   public void invoke(Endpoint ep, Invocation wsInv) throws Exception
   {
      try
      {
         ServiceEndpointContainer invocationTarget = lazyInitializeInvocationTarget();
        
         Class beanClass = invocationTarget.getServiceImplementationClass();
         Method method = getImplMethod(beanClass, wsInv.getJavaMethod());
         Object[] args = wsInv.getArgs();
         InvocationContextCallback invProps = new EJB3InvocationContextCallback(wsInv);
        
         Object retObj = invocationTarget.invokeEndpoint(method, args, invProps);

         wsInv.setReturnValue(retObj);
      }
      catch (Throwable th)
      {
View Full Code Here

TOP

Related Classes of org.jboss.wsf.spi.invocation.integration.ServiceEndpointContainer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.