Examples of sayHello()


Examples of com.alibaba.citrus.springext.contrib.deco.MyDecoratableClass.sayHello()

    @Test
    public void decorator() {
        MyDecoratableClass deco1 = (MyDecoratableClass) factory.getBean("deco1");

        assertEquals("hello", deco1.sayHello());
        assertTrue(deco1 instanceof MyDecorator);
    }

    @Test
    public void decoratorAttr() {
View Full Code Here

Examples of com.alibaba.dubbo.examples.async.api.AsyncService.sayHello()

       
        final AsyncService asyncService = (AsyncService)context.getBean("asyncService");
       
        Future<String> f = RpcContext.getContext().asyncCall(new Callable<String>() {
            public String call() throws Exception {
                return asyncService.sayHello("async call request");
            }
        });
       
        System.out.println("async call ret :" + f.get());
       
View Full Code Here

Examples of com.alibaba.dubbo.examples.heartbeat.api.HelloService.sayHello()

        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

Examples of com.alibaba.dubbo.examples.version.api.VersionService.sayHello()

        String config = VersionConsumer.class.getPackage().getName().replace('.', '/') + "/version-consumer.xml";
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(config);
        context.start();
        VersionService versionService = (VersionService) context.getBean("versionService");
        for (int i = 0; i < 10000; i ++) {
            String hello = versionService.sayHello("world");
            System.out.println(hello);
            Thread.sleep(2000);
        }
        System.in.read();
    }
View Full Code Here

Examples of com.alibaba.dubbo.rpc.protocol.dubbo.support.DemoService.sayHello()

       
        RemoteService remote = new RemoteServiceImpl();
        protocol.export(proxy.getInvoker(remote, RemoteService.class, URL.valueOf("dubbo://127.0.0.1:9010/" + RemoteService.class.getName())));
        remote = proxy.getProxy(protocol.refer(RemoteService.class, URL.valueOf("dubbo://127.0.0.1:9010/" + RemoteService.class.getName())));
       
        service.sayHello("world");
       
        // test netty client
        assertEquals("world", service.echo("world"));
        assertEquals("hello world@" + RemoteServiceImpl.class.getName(), remote.sayHello("world"));
       
View Full Code Here

Examples of com.alibaba.dubbo.rpc.protocol.dubbo.support.DemoServiceImpl.sayHello()

       
        RemoteService remote = new RemoteServiceImpl();
        protocol.export(proxy.getInvoker(remote, RemoteService.class, URL.valueOf("dubbo://127.0.0.1:9010/" + RemoteService.class.getName())));
        remote = proxy.getProxy(protocol.refer(RemoteService.class, URL.valueOf("dubbo://127.0.0.1:9010/" + RemoteService.class.getName())));
       
        service.sayHello("world");
       
        // test netty client
        assertEquals("world", service.echo("world"));
        assertEquals("hello world@" + RemoteServiceImpl.class.getName(), remote.sayHello("world"));
       
View Full Code Here

Examples of com.alibaba.dubbo.rpc.protocol.dubbo.support.RemoteService.sayHello()

       
        service.sayHello("world");
       
        // test netty client
        assertEquals("world", service.echo("world"));
        assertEquals("hello world@" + RemoteServiceImpl.class.getName(), remote.sayHello("world"));
       
        EchoService serviceEcho = (EchoService)service;
        assertEquals(serviceEcho.$echo("test"), "test");
       
        EchoService remoteEecho = (EchoService)remote;
View Full Code Here

Examples of com.alibaba.dubbo.rpc.protocol.dubbo.support.RemoteServiceImpl.sayHello()

       
        service.sayHello("world");
       
        // test netty client
        assertEquals("world", service.echo("world"));
        assertEquals("hello world@" + RemoteServiceImpl.class.getName(), remote.sayHello("world"));
       
        EchoService serviceEcho = (EchoService)service;
        assertEquals(serviceEcho.$echo("test"), "test");
       
        EchoService remoteEecho = (EchoService)remote;
View Full Code Here

Examples of com.drighetto.essai.springaop.bean.SimpleBean.sayHello()

      ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
     
      //Get bean from Spring context & call simple bean
      SimpleBean sb = (SimpleBean)context.getBean("simpleBean");
      System.out.println("---[Call method : sb.sayHello(\"Dom\") ]---");
      sb.sayHello("Dom");
      System.out.println("\n---------");
      System.out.println("----------------------------");
      System.out.println("---------\n");
      System.out.println("---[Call method : sb.sayHello() ]---");     
      System.out.println(sb.sayHello());
View Full Code Here

Examples of com.pccw.service.iace.HelloHessian.sayHello()

        factory.setUser("guxuede");
        factory.setPassword("dg23hhjs");
        System.out.println(factory.getBasicAuth());
        try {
            HelloHessian hello = (HelloHessian) factory.create(HelloHessian.class, url);
            System.out.println(hello.sayHello());
            MyCar car = hello.getMyCar();
            System.out.println(car.toString());
            for (Map.Entry<String, String> entry : hello.myBabays().entrySet()) {
                System.out.println(entry.getKey() + "   " + entry.getValue());
            }
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.