Examples of echo()


Examples of org.apache.tuscany.container.spring.mock.TestBean.echo()

        for (InboundInvocationChain chain : inboundWire.getInvocationChains().values()) {
            chain.setTargetInvoker(composite.createTargetInvoker("foo", chain.getOperation()));
        }
        composite.register(service);
        TestBean serviceInstance = (TestBean) composite.getService("fooService").getServiceInstance();
        assertEquals("bar", serviceInstance.echo("bar"));
    }


    private AbstractApplicationContext createSpringContext() {
        StaticApplicationContext beanFactory = new StaticApplicationContext();
View Full Code Here

Examples of org.apache.webbeans.test.component.ContainUserComponent.echo()

        Assert.assertNotNull(object);
        Assert.assertTrue(object instanceof ContainUserComponent);

        ContainUserComponent uc = (ContainUserComponent) object;

        Assert.assertNotNull(uc.echo());
        Assert.assertEquals(uc.echo(), userComponent.getName() + " " + userComponent.getSurname());

        ContextFactory.destroyRequestContext(null);
        ContextFactory.destroySessionContext(session);
    }
View Full Code Here

Examples of org.codehaus.xfire.service.Echo.echo()

        Echo echo = (Echo) new XFireProxyFactory().create(service, "http://localhost:8391/Echo");
       
        Element root = new Element("root", "a", "urn:a");
        root.addContent("hello");
       
        Element e = echo.echo(root);
       
        assertEquals(root.getName(), e.getName());
    }
}
View Full Code Here

Examples of org.codehaus.xfire.services.EchoOverload.echo()

    public void testClient() throws Exception
    {
        XFireProxyFactory factory = new XFireProxyFactory(getXFire());
        EchoOverload echo = (EchoOverload) factory.create(service, "xfire.local://EchoOverload");

        assertEquals("yo", echo.echo("yo"));
        assertEquals("yoyo", echo.echo("yo", "yo"));
    }
}
View Full Code Here

Examples of org.codehaus.xfire.test.Echo.echo()

        // Create a client proxy
        XFireProxyFactory proxyFactory = new XFireProxyFactory();
        Echo echo = (Echo) proxyFactory.create(serviceModel, "http://localhost:8191/Echo");
       
        System.out.println(echo.echo("Hello World"));
       
        starter.stop();
        // END SNIPPET: service
    }
}
View Full Code Here

Examples of org.eclipse.ecf.tests.remoteservice.rpc.common.IEcho.echo()

  public void testCallViaProxy() {
    IRemoteService rpcClientService = getRemoteServiceClientContainerAdapter(container).getRemoteService(registrationEchoProxy.getReference());
    try {
      IEcho echo = (IEcho) rpcClientService.getProxy(Activator.class.getClassLoader(), new Class[]{IEcho.class});
      assertNotNull(echo);
      Object result = echo.echo(ECHO_TEST_DATA);
      assertNotNull(result);
      assertEquals(result, ECHO_TEST_DATA);
    }
    catch (ECFException e) {
      e.printStackTrace();
View Full Code Here

Examples of org.jboss.as.demos.ejb3.archive.EchoService.echo()

        InitialContext ctx = new InitialContext();
        String name = "java:global/ejb3-example/SimpleStatefulSessionBean!" + SimpleStatefulSessionLocal.class.getName();
        SimpleStatefulSessionLocal bean = (SimpleStatefulSessionLocal) ctx.lookup(name);
        bean.setState("via another view");
        EchoService view = bean.getEchoService();
        return view.echo("echo service");
    }
}
View Full Code Here

Examples of org.jboss.as.demos.ejb3.archive.SimpleStatefulSessionLocal.echo()

    public String call() throws Exception {
        InitialContext ctx = new InitialContext();
        String name = "java:global/ejb3-example/SimpleStatefulSessionBean!" + SimpleStatefulSessionLocal.class.getName();
        SimpleStatefulSessionLocal bean = (SimpleStatefulSessionLocal) ctx.lookup(name);
        bean.setState("42");
        return bean.echo("the answer");
    }
}
View Full Code Here

Examples of org.jboss.as.demos.ejb3.archive.SimpleStatelessSessionLocal.echo()

            utils.deploy();

            MBeanServerConnection mbeanServer = utils.getConnection();

            SimpleStatelessSessionLocal bean = createProxy(mbeanServer, "java:global/ejb3-example/SimpleStatelessSessionBean!" + SimpleStatelessSessionLocal.class.getName(), SimpleStatelessSessionLocal.class);
            String msg = bean.echo("Hello world");
            System.out.println(msg);

            exec(mbeanServer, ExerciseStateful.class);

            String singletonBeanJndiName = "java:global/ejb3-example/SimpleSingletonBean!" + SimpleSingletonLocal.class.getName();
View Full Code Here

Examples of org.jboss.as.demos.jpa.archive.SimpleStatefulSessionLocal.echo()

    public String call() throws Exception {
        InitialContext ctx = new InitialContext();
        String name = "java:global/jpa-example/SimpleStatefulSessionBean!" + SimpleStatefulSessionLocal.class.getName();
        SimpleStatefulSessionLocal bean = (SimpleStatefulSessionLocal) ctx.lookup(name);
        bean.setState("42");
        return bean.echo("the answer");
    }
}
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.