Package org.jboss.wsf.spi.invocation

Examples of org.jboss.wsf.spi.invocation.Invocation


         invContext.addAttachment(ServletEndpointContext.class, servletEndpointContext);
      }

      invContext.addAttachment(EndpointInvocation.class, epInv);

      Invocation wsInv = new DelegatingInvocation();
      wsInv.setInvocationContext(invContext);
      wsInv.setJavaMethod(getImplMethod(endpoint, epInv));
      // JBWS-2486, see endpoint attachment initialization above
      wsInv.getInvocationContext().setTargetBean(endpoint.getAttachment(Object.class));

      return wsInv;
   }
View Full Code Here


                  reqMessage = msgContext.getMessageAbstraction();
                  sepInv = binding.unbindRequestMessage(opMetaData, reqMessage);
               }

               // Invoke an instance of the SEI implementation bean
               Invocation inv = setupInvocation(endpoint, sepInv, invContext);
               InvocationHandler invHandler = endpoint.getInvocationHandler();
              
               try
               {
                  invHandler.invoke(endpoint, inv);
               }
               catch (InvocationTargetException th)
               {
                  //Unwrap the throwable raised by the service endpoint implementation
                  Throwable targetEx = th.getTargetException();
                  throw (targetEx instanceof Exception ? (Exception)targetEx : new UndeclaredThrowableException(targetEx));
               }

               // Handler processing might have replaced the endpoint invocation
               sepInv = inv.getInvocationContext().getAttachment(EndpointInvocation.class);
            }
            finally
            {
               msgContext.remove(CommonMessageContext.ALLOW_EXPAND_TO_DOM);
            }
View Full Code Here

         invContext.addAttachment(ServletEndpointContext.class, servletEndpointContext);
      }

      invContext.addAttachment(EndpointInvocation.class, epInv);

      Invocation wsInv = new DelegatingInvocation();
      wsInv.setInvocationContext(invContext);
      wsInv.setJavaMethod(getImplMethod(endpoint, epInv));

      return wsInv;
   }
View Full Code Here

                     }
                  }
               }
              
               // Invoke an instance of the SEI implementation bean
               Invocation inv = setupInvocation(endpoint, sepInv, invContext);
               InvocationHandler invHandler = endpoint.getInvocationHandler();
              
               try
               {
                  invHandler.invoke(endpoint, inv);
                 
               }
               catch (InvocationTargetException th)
               {
                  //Unwrap the throwable raised by the service endpoint implementation
                  Throwable targetEx = th.getTargetException();
                  throw (targetEx instanceof Exception ? (Exception)targetEx : new UndeclaredThrowableException(targetEx));
               }

               // Handler processing might have replaced the endpoint invocation
               sepInv = inv.getInvocationContext().getAttachment(EndpointInvocation.class);
            }
            finally
            {
               msgContext.remove(CommonMessageContext.ALLOW_EXPAND_TO_DOM);
            }
View Full Code Here

         invContext.addAttachment(ServletEndpointContext.class, servletEndpointContext);
      }

      invContext.addAttachment(EndpointInvocation.class, epInv);

      Invocation wsInv = new DelegatingInvocation();
      wsInv.setInvocationContext(invContext);
      wsInv.setJavaMethod(getImplMethod(endpoint, epInv));
      wsInv.getInvocationContext().setTargetBean(getEndpointInstance());

      return wsInv;
   }
View Full Code Here

/* 209 */             log.debug("Handler modified payload, unbind message again");
/* 210 */             reqMessage = msgContext.getMessageAbstraction();
/* 211 */             sepInv = binding.unbindRequestMessage(opMetaData, reqMessage);
/*     */           }
/*     */
/* 215 */           Invocation inv = setupInvocation(this.endpoint, sepInv, invContext);
/* 216 */           InvocationHandler invHandler = this.endpoint.getInvocationHandler();
/*     */           try
/*     */           {
/* 220 */             invHandler.invoke(this.endpoint, inv);
/*     */           }
/*     */           catch (InvocationTargetException th)
/*     */           {
/* 225 */             Throwable targetEx = th.getTargetException();
/* 226 */             throw ((targetEx instanceof Exception) ? (Exception)targetEx : new UndeclaredThrowableException(targetEx));
/*     */           }
/*     */
/* 230 */           sepInv = (EndpointInvocation)inv.getInvocationContext().getAttachment(EndpointInvocation.class);
/*     */         }
/*     */         finally
/*     */         {
/* 234 */           msgContext.remove(CommonMessageContext.ALLOW_EXPAND_TO_DOM);
/*     */         }
View Full Code Here

/* 329 */       invContext.addAttachment(ServletEndpointContext.class, servletEndpointContext);
/*     */     }
/*     */
/* 332 */     invContext.addAttachment(EndpointInvocation.class, epInv);
/*     */
/* 334 */     Invocation wsInv = new DelegatingInvocation();
/* 335 */     wsInv.setInvocationContext(invContext);
/* 336 */     wsInv.setJavaMethod(getImplMethod(this.endpoint, epInv));
/*     */
/* 338 */     return wsInv;
/*     */   }
View Full Code Here

/*  51 */   private static final Logger log = Logger.getLogger(ServiceEndpointInvokerEJB21.class);
/*     */
/*     */   protected Invocation setupInvocation(Endpoint ep, EndpointInvocation epInv, InvocationContext invContext)
/*     */     throws Exception
/*     */   {
/*  56 */     Invocation inv = super.setupInvocation(ep, epInv, invContext);
/*     */
/*  59 */     ServerEndpointMetaData sepMetaData = (ServerEndpointMetaData)this.endpoint.getAttachment(ServerEndpointMetaData.class);
/*  60 */     invContext.addAttachment(HandlerCallback.class, new HandlerCallbackImpl(sepMetaData));
/*     */
/*  62 */     return inv;
View Full Code Here

         invContext.addAttachment(ServletEndpointContext.class, servletEndpointContext);
      }

      invContext.addAttachment(EndpointInvocation.class, epInv);

      Invocation wsInv = new DelegatingInvocation();
      wsInv.setInvocationContext(invContext);
      wsInv.setJavaMethod(getImplMethod(endpoint, epInv));
      // JBWS-2486, see endpoint attachment initialization above
      wsInv.getInvocationContext().setTargetBean(endpoint.getAttachment(Object.class));

      return wsInv;
   }
View Full Code Here

   // provide logging
   private static final Logger log = Logger.getLogger(InvocationHandlerMDB21.class);

   public Invocation createInvocation()
   {
      return new Invocation();
   }
View Full Code Here

TOP

Related Classes of org.jboss.wsf.spi.invocation.Invocation

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.