Package org.jboss.soa.esb.client

Examples of org.jboss.soa.esb.client.ServiceInvoker


                "org.apache.ws.scout.registry.ConnectionFactoryImpl");
        try
        {
            Message message = MessageFactory.getInstance().getMessage();
            message.getBody().add("Sample payload");
            ServiceInvoker invoker = new ServiceInvoker("FirstServiceESB", "SimpleListener");
            invoker.deliverAsync(message);
        }
        catch (final MessageDeliverException e)
        {
            e.printStackTrace();
        }
View Full Code Here


        return new Service(uri.getSchemeSpecificPart(), uri.getFragment());
    }

    public ServiceInvoker getServiceInvoker() throws MessageDeliverException {
        if(serviceInvoker == null) {
            serviceInvoker = new ServiceInvoker(toService(), getAddr().getAllExtensions());
        }
        return serviceInvoker;
    }
View Full Code Here

        _registry = RegistryFactory.getRegistry();
        _cbr = ContentBasedRouterFactory.getRouter(_cbrClass);
        _cbr.setConfigTree(config);
        _mapper = new ObjectMapper(config);
        try {
            dlQueueInvoker = new ServiceInvoker(ServiceInvoker.INTERNAL_SERVICE_CATEGORY, ServiceInvoker.DEAD_LETTER_SERVICE_NAME);
        } catch (MessageDeliverException e) {
            throw new MessageRouterException(e);
        }
       
        messageMulticaster.setAggregatorOnProperties(Aggregator.aggregatorOnProperties(config));
View Full Code Here

            service = new Service(
              config.getInitParameter(ListenerTagNames.TARGET_SERVICE_CATEGORY_TAG),
              config.getInitParameter(ListenerTagNames.TARGET_SERVICE_NAME_TAG)
            );
            try {
                serviceInvoker = new ServiceInvoker(service);
            } catch (MessageDeliverException e) {
                throw new ServletException("Unable to create ServiceInvoker for Service '" + service + "'.", e);
            }
          endpointAddress = config.getInitParameter(Servlet.ENDPOINT_ADDRESS);
   
View Full Code Here

public class ServiceInvokerAction extends AbstractActionPipelineProcessor {
   
    private ServiceInvoker invoker;

    public ServiceInvokerAction(ConfigTree config) throws MessageDeliverException {
        invoker = new ServiceInvoker("MyServiceCategory", "MyService2");
    }
View Full Code Here

        }
        else
        {
            message.getBody().add(requestLocation, EBWSUtil.VALID_REQUEST) ;
        }
        final ServiceInvoker serviceInvoker = new ServiceInvoker("TestEBWS", name) ;
       
        final Message responseMessage = serviceInvoker.deliverSync(message, 30000) ;
       
        final Object response ;
        if (responseLocation == null)
        {
            response = responseMessage.getBody().get();
View Full Code Here

      esbMessage.getHeader().setCall(call);
     
      // set body contents with args[2], and send
      esbMessage.getBody().add(args[2]);
     
        new ServiceInvoker(args[0], args[1]).deliverAsync(esbMessage);
     
    }
View Full Code Here

      if (args[0] != null && !args[0].equals(""))
         msgText =  args[0];
     
      System.out.println("Inbound Data: " + msgText);
     
      ServiceInvoker invoker;
      Message requestMessage;
      Message replyMessage;     
      invoker = new ServiceInvoker("ActionServices", "CustomActionService");
      requestMessage = MessageFactory.getInstance().getMessage(MessageType.JBOSS_XML);
      requestMessage.getBody().add(msgText);
     
      invoker.deliverAsync(requestMessage); // no waiting for a response
     
      // now delivery it and wait for a response
      replyMessage = invoker.deliverSync(requestMessage, 20000);
     
      System.out.println("Reply Message: " + replyMessage.getBody().get());
    }
View Full Code Here

      System.out.println("File Name: " + fileName);
     
      String fileContent = readAsciiFile(fileName);
      System.out.println("File Content:\n " + fileContent + "\n");
     
      ServiceInvoker invoker;
      Message requestMessage;
      Message replyMessage = null;     
      invoker = new ServiceInvoker("MyTransformationServicesESB", "MyXML2POJO2TransformationService");
      requestMessage = MessageFactory.getInstance().getMessage(MessageType.JBOSS_XML);
      requestMessage.getBody().add(fileContent);
           
      // now delivery it and wait for a response
      replyMessage = invoker.deliverSync(requestMessage, 20000);
     
      System.out.println("Reply Message: " + replyMessage.getBody().get());
    }
View Full Code Here

     
        Order order = new Order();
        order.setQuantity(Integer.valueOf(args[2]));
        esbMessage.getBody().add(order);

        new ServiceInvoker(args[0], args[1]).deliverAsync(esbMessage);
    }
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.client.ServiceInvoker

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.