Package com.alibaba.dubbo.examples.heartbeat.api

Examples of com.alibaba.dubbo.examples.heartbeat.api.HelloService


    public static void main(String[] args) throws Exception {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
                HeartbeatConsumer.class.getPackage().getName().replace('.', '/') + "/heartbeat-consumer.xml");
        context.start();
        HelloService hello = (HelloService) context.getBean("helloService");
        for (int i = 0; i < Integer.MAX_VALUE; i++) {
            System.out.println(hello.sayHello("kimi-" + i));
            Thread.sleep(10000);
        }
    }
View Full Code Here

TOP

Related Classes of com.alibaba.dubbo.examples.heartbeat.api.HelloService

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.