Examples of Helloworld


Examples of org.apache.aries.sample.HelloWorld

      app = manager.resolve(app);
      //installing requires a valid url for the bundle in repository.xml.
      AriesApplicationContext ctx = manager.install(app);
      ctx.start();

      HelloWorld hw = context().getService(HelloWorld.class);
      String result = hw.getMessage();
      assertEquals (result, "hello world");

      ctx.stop();
      manager.uninstall(ctx);
    }
View Full Code Here

Examples of org.apache.cxf.systest.jaxrs.jaxws.HelloWorld

   
    @Test
    public void testHelloRest() throws Exception {
        String address = "http://localhost:" + PORT + "/test/services/hello-rest";
       
        HelloWorld service = JAXRSClientFactory.create(address, HelloWorld.class);
        useHelloService(service);
    }
View Full Code Here

Examples of org.apache.cxf.systest.jaxrs.jaxws.HelloWorld

        final String address = "http://localhost:" + PORT + "/test/services/hello-soap";
       
        Service service = Service.create(serviceName);
        service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, address);
   
        HelloWorld hw = service.getPort(HelloWorld.class);
   
        useHelloService(hw);
    }
View Full Code Here

Examples of org.apache.cxf.systest.jaxrs.jaxws.HelloWorld

        final QName portName = new QName("http://hello.com", "HelloWorldPort");
       
        Service service = Service.create(serviceName);
        service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, address);
   
        HelloWorld hw = service.getPort(HelloWorld.class);
       
        Client cl = ClientProxy.getClient(hw);
       
        HTTPConduit http = (HTTPConduit) cl.getConduit();
        
        HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
        httpClientPolicy.setConnectionTimeout(0);
        httpClientPolicy.setReceiveTimeout(0);
        
        http.setClient(httpClientPolicy);
   
        User user = new UserImpl("Barry");
        User user2 = hw.echoUser(user);
       
        assertNotSame(user, user2);
        assertEquals("Barry", user2.getName());
    }
View Full Code Here

Examples of org.apache.geronimo.test.ws.HelloWorld

         
          Queue q = (Queue) ctx.lookup("java:comp/env/jms/SendReceiveQueue");
          out.println("<font align=Center face=\"Garamond\"> Check JMS Resource Env Reference : Got Queue ->"+q.getQueueName()+" </font><br>");
         
          HelloWorldService hello = (HelloWorldService) ctx.lookup("java:comp/env/service/HelloWorldService");
          HelloWorld port = hello.getHelloWorld();
          out.println("<font align=Center face=\"Garamond\"> Check Service Reference : Called Web Service ->"+port.getHelloWorld("Test")+" </font><br>");
      
      TestLocalHome resultLocal = (TestLocalHome)ctx.lookup("java:comp/env/ejb/TestLocalBean");
      TestLocal testLocal = resultLocal.create();
      String echoLocal = testLocal.echoLocal("Test");
      out.println("<font align=Center face=\"Garamond\"> Check EJB Local Reference : Call to bean method returned ->"+echoLocal+" </font><br>");
View Full Code Here

Examples of org.apache.juddi.samples.HelloWorld

          long duration2 = System.currentTimeMillis() - startTime2;
          System.out.println("2. Cache Lookup - Elapsed time: " + duration2 + "[milliseconds] Endpoint=" + endpoint2);
         
          //Invoke the endpoint using 'endpoint2'
          HelloWorld_Service helloWorldService = new HelloWorld_Service();
          HelloWorld helloWorld = helloWorldService.getHelloWorldImplPort();
          Map<String, Object> requestContext = ((BindingProvider) helloWorld).getRequestContext();
      requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, endpoint2);
      String reply = helloWorld.sayHi("Judy");
          System.out.println("*************** Service reply: " + reply);
      //need to call shutdown to take down the LiveCache Callback Endpoint.
          Thread.sleep(10l);
          serviceLocator.shutdown();
          //TODO JUDDI-610
View Full Code Here

Examples of org.apache.myfaces.view.facelets.bean.HelloWorld

    }
   
    @Test
    public void testSimpleCompositeAttributeMethodExpression() throws Exception
    {
        HelloWorld helloWorld = new HelloWorld();
       
        facesContext.getExternalContext().getRequestMap().put("helloWorldBean",
                helloWorld);
       
        UIViewRoot root = facesContext.getViewRoot();
View Full Code Here

Examples of org.apache.myfaces.view.facelets.bean.HelloWorld

    }
   
    @Test
    public void testSimpleActionSource() throws Exception
    {
        HelloWorld helloWorld = new HelloWorld();
       
        facesContext.getExternalContext().getRequestMap().put("helloWorldBean",
                helloWorld);
       
        UIViewRoot root = facesContext.getViewRoot();
View Full Code Here

Examples of org.apache.myfaces.view.facelets.bean.HelloWorld

    }
   
    @Test
    public void testSimpleValueHolder() throws Exception
    {
        HelloWorld helloWorld = new HelloWorld();
       
        facesContext.getExternalContext().getRequestMap().put("helloWorldBean",
                helloWorld);
       
        UIViewRoot root = facesContext.getViewRoot();
View Full Code Here

Examples of org.apache.myfaces.view.facelets.bean.HelloWorld

    }
   
    @Test
    public void testCompositeActionSource() throws Exception
    {
        HelloWorld helloWorld = new HelloWorld();
       
        facesContext.getExternalContext().getRequestMap().put("helloWorldBean",
                helloWorld);
       
        UIViewRoot root = facesContext.getViewRoot();
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.