Package com.alibaba.dubbo.examples.merge.api

Examples of com.alibaba.dubbo.examples.merge.api.MergeService


   
    public static void main(String[] args) throws Exception {
        String config = MergeConsumer2.class.getPackage().getName().replace('.', '/') + "/merge-consumer2.xml";
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(config);
        context.start();
        MergeService mergeService = (MergeService)context.getBean("mergeService");
        for (int i = 0; i < Integer.MAX_VALUE; i ++) {
            try {
                List<String> result = mergeService.mergeResult();
                System.out.println("(" + i + ") " + result);
                Thread.sleep(1000);
            } catch (Exception e) {
                e.printStackTrace();
            }
View Full Code Here


   
    public static void main(String[] args) throws Exception {
        String config = MergeConsumer.class.getPackage().getName().replace('.', '/') + "/merge-consumer.xml";
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(config);
        context.start();
        MergeService mergeService = (MergeService)context.getBean("mergeService");
        for (int i = 0; i < Integer.MAX_VALUE; i ++) {
            try {
                List<String> result = mergeService.mergeResult();
                System.out.println("(" + i + ") " + result);
                Thread.sleep(1000);
            } catch (Exception e) {
                e.printStackTrace();
            }
View Full Code Here

TOP

Related Classes of com.alibaba.dubbo.examples.merge.api.MergeService

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.