Examples of echo()


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

            String msg = bean.echo("Hello world");
            */
            MBeanServerConnection mbeanServer = utils.getConnection();

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

            doStatefulMagic(mbeanServer);
        } finally {
            utils.undeploy();
View Full Code Here

Examples of org.jboss.as.demos.managedbean.archive.BeanWithSimpleInjected.echo()

    @Override
    public String echo(String s) {
        log.info("-----> In test()");
        log.info("-----> Found BeanWithSimpleInjected, calling echo(\"Test\")");
        final BeanWithSimpleInjected bean = LookupService.getBean();
        s = bean.echo(s);
        if(bean.getSimple() == null) {
            throw new RuntimeException("Injection not complete");
        }
        log.info("-----> echo returned " + s);
        return s;
View Full Code Here

Examples of org.jboss.as.demos.ws.archive.Endpoint.echo()

        QName serviceName = new QName("http://archive.ws.demos.as.jboss.org/", "EndpointService");
        System.out.println("JAXWS Client provider being used: " + Provider.provider().getClass());
        Service service = Service.create(wsdlURL, serviceName);
        Endpoint port = (Endpoint) service.getPort(Endpoint.class);
        System.out.println("Sending request 'hello' to address http://localhost:8080/ws-example");
        System.out.println("Got result : " + port.echo("hello"));
    }

    private static void testWebServiceRef() throws Exception {
        String urlPart = "servlet";
        URLConnection conn = null;
View Full Code Here

Examples of org.jboss.as.test.clustering.cluster.ejb.xpc.bean.Stateful.echo()

            case FLUSH: {
                bean.flush();
                break;
            }
            case ECHO: {
                bean.echo(req.getParameter(MESSAGE));
                break;
            }
            case CLEAR: {
                bean.clear();
                break;
View Full Code Here

Examples of org.jboss.as.test.integration.osgi.xservice.api.Echo.echo()

   public void start(final BundleContext context) throws Exception
   {
      log.infof("Echo Loader: %s", Echo.class.getClassLoader());
      ServiceReference sref = context.getServiceReference(Echo.class.getName());
      Echo service = (Echo)context.getService(sref);
      String result = service.echo("hello world");
      context.registerService(StringBuffer.class.getName(), new StringBuffer(result), null);
   }

   @Override
   public void stop(BundleContext context) throws Exception
View Full Code Here

Examples of org.jboss.as.test.integration.osgi.xservice.api.Echo.echo()

    public void testTargetBundle() throws Exception {
        bundle.start();
        BundleContext context = bundle.getBundleContext();
        ServiceReference sref = context.getServiceReference(Echo.class.getName());
        Echo service = (Echo) context.getService(sref);
        assertEquals("foo", service.echo("foo"));
    }

    @Test
    public void testStatelessBean() throws Exception {
        deployer.deploy(EJB3_DEPLOYMENT_NAME);
View Full Code Here

Examples of org.jboss.as.test.integration.osgi.xservice.api.Echo.echo()

        deployer.deploy(EJB3_DEPLOYMENT_NAME);
        try {
            String jndiname = "java:global/ejb3-osgi/SimpleStatelessSessionBean!org.jboss.as.test.integration.osgi.ejb3.SimpleStatelessSessionBean";
            Echo service = (Echo) new InitialContext().lookup(jndiname);
            assertNotNull("StatelessBean not null", service);
            assertEquals("ejb3-osgi-target", service.echo(BUNDLE_SYMBOLICNAME));
            assertEquals("foo", service.echo("foo"));
        } finally {
            deployer.undeploy(EJB3_DEPLOYMENT_NAME);
        }
    }
View Full Code Here

Examples of org.jboss.as.test.integration.osgi.xservice.api.Echo.echo()

        try {
            String jndiname = "java:global/ejb3-osgi/SimpleStatelessSessionBean!org.jboss.as.test.integration.osgi.ejb3.SimpleStatelessSessionBean";
            Echo service = (Echo) new InitialContext().lookup(jndiname);
            assertNotNull("StatelessBean not null", service);
            assertEquals("ejb3-osgi-target", service.echo(BUNDLE_SYMBOLICNAME));
            assertEquals("foo", service.echo("foo"));
        } finally {
            deployer.undeploy(EJB3_DEPLOYMENT_NAME);
        }
    }
View Full Code Here

Examples of org.jboss.as.test.integration.osgi.xservice.api.Echo.echo()

      public void start(StartContext context) throws StartException
      {
         BundleContext systemContext = injectedBundleContext.getValue();
         ServiceReference sref = systemContext.getServiceReference(Echo.class.getName());
         Echo service = (Echo)systemContext.getService(sref);
         service.echo("hello world");
      }
   }
}
View Full Code Here

Examples of org.jboss.as.test.integration.ws.injection.ejb.basic.webservice.EndpointIface.echo()

        QName serviceName = new QName("http://jbossws.org/injection", "POJOService");
        URL wsdlURL = new URL(baseUrl, "/jaxws-injection-pojo/POJOService?wsdl");

        Service service = Service.create(wsdlURL, serviceName);
        EndpointIface proxy = service.getPort(EndpointIface.class);
        Assert.assertEquals("Hello World!:Inbound:TestHandler:POJOBean:Outbound:TestHandler", proxy.echo("Hello World!"));
    }

    @Test
    public void testEjb3Endpoint() throws Exception {
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.