Package org.apache.juddi.v3.client.mapping

Examples of org.apache.juddi.v3.client.mapping.ServiceLocator.lookupEndpoint()


          serviceLocator.withLiveCache(new URL("http://localhost:18079"));
          System.out.println("Add Listener to Cache in " + (System.currentTimeMillis() - startTime) + " [milliseconds]");
         
          //first time the lookup will have to contact UDDI
          startTime = System.currentTimeMillis();
          String endpoint = serviceLocator.lookupEndpoint(helloWorldServiceKey);
          long duration = System.currentTimeMillis() - startTime;
          System.out.println("1. UDDI Lookup - Elapsed time: " + duration + "[milliseconds] Endpoint=" + endpoint);
         
          //second lookup should be lightning fast
          long startTime2 = System.currentTimeMillis();;
View Full Code Here


          long duration = System.currentTimeMillis() - startTime;
          System.out.println("1. UDDI Lookup - Elapsed time: " + duration + "[milliseconds] Endpoint=" + endpoint);
         
          //second lookup should be lightning fast
          long startTime2 = System.currentTimeMillis();;
          String endpoint2 = serviceLocator.lookupEndpoint(helloWorldServiceKey);
          long duration2 = System.currentTimeMillis() - startTime2;
          System.out.println("2. Cache Lookup - Elapsed time: " + duration2 + "[milliseconds] Endpoint=" + endpoint2);
         
          //Invoke the endpoint using 'endpoint2'
          HelloWorld_Service helloWorldService = new HelloWorld_Service();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.