Package org.jboss.ws.core.server

Examples of org.jboss.ws.core.server.ServiceEndpointInvoker


         // Set the thread context class loader
         ClassLoader classLoader = sepMetaData.getClassLoader();
         Thread.currentThread().setContextClassLoader(classLoader);

         // Get the Invoker
         ServiceEndpointInvoker epInvoker = ep.getAttachment(ServiceEndpointInvoker.class);
         if (epInvoker == null)
            throw new IllegalStateException("Cannot obtain ServiceEndpointInvoker");

         // Invoke the service endpoint
         epInvoker.invoke(reqContext);

         // Get the response message context
         msgContext = MessageContextAssociation.peekMessageContext();

         // Get the response message
View Full Code Here


/*    */ {
/*    */   public void create(Deployment dep)
/*    */   {
/* 44 */     for (Endpoint ep : dep.getService().getEndpoints())
/*    */     {
/* 46 */       ServiceEndpointInvoker epInvoker = (ServiceEndpointInvoker)ep.getAttachment(ServiceEndpointInvoker.class);
/* 47 */       if (epInvoker == null)
/*    */       {
/* 49 */         Deployment.DeploymentType depType = ep.getService().getDeployment().getType();
/* 50 */         if (depType == Deployment.DeploymentType.JAXRPC_EJB21)
/*    */         {
/* 52 */           epInvoker = new ServiceEndpointInvokerEJB21();
/*    */         }
/*    */         else
/*    */         {
/* 56 */           epInvoker = new ServiceEndpointInvoker();
/*    */         }
/* 58 */         ep.addAttachment(ServiceEndpointInvoker.class, epInvoker);
/* 59 */         epInvoker.init(ep);
/*    */       }
/*    */     }
/*    */   }
View Full Code Here

/* 402 */       MessageTrace.traceMessage("Incoming Request Message", reqMessage);
/*     */
/* 405 */       ClassLoader classLoader = sepMetaData.getClassLoader();
/* 406 */       Thread.currentThread().setContextClassLoader(classLoader);
/*     */
/* 409 */       ServiceEndpointInvoker epInvoker = (ServiceEndpointInvoker)ep.getAttachment(ServiceEndpointInvoker.class);
/* 410 */       if (epInvoker == null) {
/* 411 */         throw new IllegalStateException("Cannot obtain ServiceEndpointInvoker");
/*     */       }
/*     */
/* 414 */       epInvoker.invoke(reqContext);
/*     */
/* 417 */       msgContext = MessageContextAssociation.peekMessageContext();
/*     */
/* 420 */       MessageAbstraction resMessage = msgContext.getMessageAbstraction();
/* 421 */       if (resMessage != null) {
View Full Code Here

         // Set the thread context class loader
         ClassLoader classLoader = sepMetaData.getClassLoader();
         Thread.currentThread().setContextClassLoader(classLoader);

         // Get the Invoker
         ServiceEndpointInvoker epInvoker = ep.getAttachment(ServiceEndpointInvoker.class);
         if (epInvoker == null)
            throw new IllegalStateException("Cannot obtain ServiceEndpointInvoker");

         // Invoke the service endpoint
         epInvoker.invoke(reqContext);

         // Get the response message context
         msgContext = MessageContextAssociation.peekMessageContext();

         // Get the response message
View Full Code Here

         // Set the thread context class loader
         ClassLoader classLoader = sepMetaData.getClassLoader();
         Thread.currentThread().setContextClassLoader(classLoader);

         // Get the Invoker
         ServiceEndpointInvoker epInvoker = ep.getAttachment(ServiceEndpointInvoker.class);
         if (epInvoker == null)
            throw new IllegalStateException("Cannot obtain ServiceEndpointInvoker");

         // Invoke the service endpoint
         epInvoker.invoke(reqContext);

         // Get the response message context
         msgContext = MessageContextAssociation.peekMessageContext();

         // Get the response message
View Full Code Here

TOP

Related Classes of org.jboss.ws.core.server.ServiceEndpointInvoker

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.