Examples of Hello


Examples of org.apache.cxf.systest.mtom_feature.Hello

            return;
        }       
        byte[] bytes = ImageHelper.getImageBytes(getImage("/java.jpg"), "image/jpeg");
        Holder<byte[]> image = new Holder<byte[]>(bytes);

        Hello port = getPort();
        SOAPBinding binding = (SOAPBinding) ((BindingProvider)port).getBinding();
        binding.setMTOMEnabled(true);

        port.echoData(image);
        assertNotNull(image);
    }
View Full Code Here

Examples of org.apache.cxf.systest.mtom_feature.Hello

        URL wsdl = getClass().getResource("/wsdl_systest/mtom.wsdl");
        assertNotNull("WSDL is null", wsdl);

        HelloService service = new HelloService(wsdl, serviceName);
        assertNotNull("Service is null ", service);
        Hello hello = service.getHelloPort();
        try {
            updateAddressPort(hello, PORT);
        } catch (Exception ex) {
            //ignore
        }
View Full Code Here

Examples of org.apache.geronimo.test.eba.api.Hello

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        doPost(request,response);
    }

    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        Hello hello = new Hello();
       
        PrintWriter out = response.getWriter();
        out.println("<html><head><title>Sample Wab Application Bundle</title></head></html>");
        out.println("<body><h1>");
        out.println(hello.sayHello("Web Application Bundle"));
        out.println("</h1></body></html>");
    }
View Full Code Here

Examples of org.eclipse.ecf.examples.remoteservices.hello.impl.Hello

        IDistributionConstants.SERVICE_EXPORTED_CONTAINER_FACTORY_ARGUMENTS,
        containerId);
    props.put("ecf.exported.async.objectClass",new String[] { IHelloAsync.class.getName() });
    // register remote service
    helloRegistration = bundleContext.registerService(
        IHello.class.getName(), new Hello(), props);
    // tell everyone
    System.out.println("Host: Hello Service Registered");
  }
View Full Code Here

Examples of org.jboss.as.test.integration.security.common.ejb3.Hello

        resp.setContentType("text/plain");
        final PrintWriter writer = resp.getWriter();
        final String jndiName = req.getParameter(PARAM_JNDI_NAME);
        try {
            final Context ctx = new InitialContext();
            final Hello ejbObject = (Hello) ctx.lookup(jndiName);
            final String msg = ejbObject.sayHello();
            LOGGER.info(msg);
            writer.append(msg);
            ctx.close();
        } catch (NamingException ex) {
            LOGGER.warn("Unable to get EJB.", ex);
View Full Code Here

Examples of org.jboss.ejb3.test.interceptors.ejbthree1215.Hello

      Thread.currentThread().setContextClassLoader(Hello.class.getClassLoader());
     
      ProxyContainer<HelloBean> container = new ProxyContainer<HelloBean>("ContextGetMethodTestCase", "InterceptorContainer", HelloBean.class);
     
      Class<?> interfaces[] = { Hello.class };
      Hello proxy = container.constructProxy(interfaces);
     
      String name = new Date().toString();
      String result = proxy.sayHiTo(name);
     
      assertEquals(1, GetMethodInterceptor.invocations);
      assertEquals("Hi " + name, result);
      log.info("======= Done");
   }
View Full Code Here

Examples of org.jboss.test.hello.interfaces.Hello

   public void testClientSerializationErrorDoesntFailOver()
      throws Exception
   {
      HelloHome home = (HelloHome)getInitialContext().lookup(JNDI_NAME);
      Hello hello = home.create();
      try
      {
         hello.setNotSerializable(new NotSerializable());
      }
      catch(Exception e)
      {
         getLog().debug("Caught IOException as expected", e);
      }
      hello.hello("client serialization error");
   }
View Full Code Here

Examples of org.jboss.test.hello.interfaces.Hello

   public void testServerSerializationErrorDoesntFailOver()
      throws Exception
   {
      HelloHome home = (HelloHome)getInitialContext().lookup(JNDI_NAME);
      Hello hello = home.create();
      try
      {
         hello.getNotSerializable();
      }
      catch(Exception e)
      {
         getLog().debug("Caught IOException as expected", e);
      }
      hello.hello("server serialization error");
   }
View Full Code Here

Examples of org.jboss.test.hello.interfaces.Hello

    */
   public void testData()
      throws Exception
   {
      HelloHome home = (HelloHome)getInitialContext().lookup(JNDI_NAME);
      Hello hello = home.create();
      HelloData name = new HelloData();
      name.setName("testData");
      getLog().debug(hello.howdy(name));
      hello.remove();
   }
View Full Code Here

Examples of org.jboss.test.hello.interfaces.Hello

   public void testSpeed()
      throws Exception
   {
      long start = System.currentTimeMillis();
      HelloHome home = (HelloHome)getInitialContext().lookup(JNDI_NAME);
      Hello hello = home.create();
      for (int i = 0 ; i < getIterationCount(); i++)
      {
         hello.hello("testSpeed");
      }
      long end = System.currentTimeMillis();
      getLog().debug("Avg. time/call(ms):"+((end-start)/getIterationCount()));
   }
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.