Package bean

Examples of bean.Hello


                new ServiceDiscoveryManager(ldm, new LeaseRenewalManager());
        /* Wait no more then 10 seconds to discover the service */
        ServiceItem item = sdm.lookup(tmpl, null, 10000);
        if(item != null) {
            System.out.println("Discovered Hello service");
            Hello hello = (Hello)item.service;
            System.out.println("Invoking Hello service ...");
            String ret = hello.hello("Hello from Client");
            System.out.println("Received: "+ret+" from Hello service");
        } else {
            System.out.println("Hello service not discovered, make sure "+
                               "service is deployed");
        }
View Full Code Here

TOP

Related Classes of bean.Hello

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.