Examples of HelloHome


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

      long start = System.currentTimeMillis();
     
      getLog().debug("Starting context lookup speed test");
      for (int i = 0; i < getIterationCount(); i++)
      {
         HelloHome home = (HelloHome)new InitialContext().lookup(JNDI_NAME);
      }
      long end = System.currentTimeMillis();
      getLog().debug("Avg. time/call(ms):"+((end-start)/getIterationCount()));
   }
View Full Code Here

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

      long start = System.currentTimeMillis();
     
      getLog().debug("Starting context lookup speed test");
      for (int i = 0; i < getIterationCount(); i++)
      {
         HelloHome home = (HelloHome)ctx.lookup(JNDI_NAME);
      }
      long end = System.currentTimeMillis();
      getLog().debug("Avg. time/call(ms):"+((end-start)/getIterationCount()));
   }
View Full Code Here

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

    */
   public void testHello()
      throws Exception
   {
      InitialContext ctx = getInitialContext();
      HelloHome home = (HelloHome) ctx.lookup("helloworld/HelloHTTP");
      Hello hello = home.create();
      String reply = hello.hello("World");
      getLog().debug(reply);
      hello.remove();
   }
View Full Code Here

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

    */
   public void testLoggedHello()
      throws Exception
   {
      InitialContext ctx = getInitialContext();
      HelloHome home = (HelloHome) ctx.lookup("helloworld/HelloHTTP");
      Hello hello = home.create();
      String reply = hello.loggedHello("World");
      getLog().debug(reply);
      hello.remove();

      // Find
View Full Code Here

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

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

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

    */
   public void testSpeed()
      throws Exception
   {
      long start = System.currentTimeMillis();
      HelloHome home = (HelloHome)getInitialContext().lookup(JNDI_NAME);
      Hello hello = home.create();
      int count = getIterationCount();
      for (int i = 0 ; i < count; i++)
      {
         hello.hello("Argument#"+i);
      }
View Full Code Here

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

    */
   public void testSpeed2()
      throws Exception
   {
      long start = System.currentTimeMillis();
      HelloHome home = (HelloHome)getInitialContext().lookup(JNDI_NAME);
      Hello hello = home.create();
      int count = getIterationCount();
      for (int i = 0 ; i < count; i++)
      {
         hello.helloHello(hello);
      }
View Full Code Here

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

      getLog().debug("Starting context lookup speed test");
      int count = getIterationCount();
      for (int i = 0 ; i < count; i++)
      {
         HelloHome home = (HelloHome) new InitialContext().lookup(JNDI_NAME);
         home.hashCode();
      }
      long end = System.currentTimeMillis();
      getLog().debug("Avg. for "+count+" lookups (ms):"+((end-start)/count));
   }
View Full Code Here

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

      getLog().debug("Starting context lookup speed test");
      int count = getIterationCount();
      for (int i = 0 ; i < count; i++)
      {
         HelloHome home = (HelloHome) ctx.lookup(JNDI_NAME);
         home.hashCode();
      }
      long end = System.currentTimeMillis();
      getLog().debug("Avg. for "+count+" lookups (ms):"+((end-start)/count));
   }
View Full Code Here

Examples of org.jboss.test.helloiiop.interfaces.HelloHome

    * @exception   Exception
    */
   public void testHello()
      throws Exception
   {
      HelloHome home = (HelloHome)PortableRemoteObject.narrow(
                               getInitialContext().lookup(HelloHome.JNDI_NAME),
                               HelloHome.class);
      Hello hello = home.create();
      getLog().debug(hello.hello("World"));
      hello.remove();
   }
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.