Package routines.system.api

Examples of routines.system.api.ESBConsumer


      public ESBConsumer createConsumer(final ESBEndpointInfo endpoint) {
        System.out.println("ESB [consumer]: Creating a consumer to communicate with service " + endpoint.getEndpointProperties().get("wsdlURL"));
        System.out.println("ESB [consumer]: consumer endpoint info - key = " + endpoint.getEndpointKey());
        System.out.println("ESB [consumer]: consumer endpoint info - uri = " + endpoint.getEndpointUri());
        System.out.println("ESB [consumer]: consumer endpoint info - properties = " + endpoint.getEndpointProperties());
        return new ESBConsumer() {
          public Object invoke(Object payload) throws Exception {
            // System.out.println("ESB: Job sent message " + ((org.dom4j.Document) payload).asXML());
            System.out.println("ESB [consumer]: Job sent message to " + endpoint.getEndpointProperties().get("wsdlURL"));
            try {Thread.sleep(1000);} catch (InterruptedException e) {}
            return getDocument("<GetWeatherResponse xmlns='http://litwinconsulting.com/webservices/'><GetWeatherResult>Sunny</GetWeatherResult></GetWeatherResponse>");
View Full Code Here

TOP

Related Classes of routines.system.api.ESBConsumer

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.