Package org.jboss.test.pooled.interfaces

Examples of org.jboss.test.pooled.interfaces.StatelessSessionHome.create()


   private StatelessSession getSession() throws Exception
   {
     
      StatelessSessionHome home = (StatelessSessionHome)new InitialContext().lookup("nextgen.StatelessSession");
      return home.create();
   }


   private class NewProxy implements Runnable
   {
View Full Code Here


      failures = 0;
      System.out.println("------------------------");
      System.out.println("**** OldProxy " + ejbname + " ****");
     
      StatelessSessionHome home = (StatelessSessionHome)ctx.lookup(ejbname);
      StatelessSession proxy = home.create();
      Thread[] threads = new Thread[NUM_THREADS];
      for (int i = 0; i < NUM_THREADS; i++)
      {
         threads[i] = new Thread(new OldProxy(proxy));
      }
View Full Code Here

      InitialContext jndiContext = new InitialContext();
      log.debug("Lookup StatelessSessionWithPooledSSL");
      Object obj = jndiContext.lookup("StatelessSessionWithPooledSSL");
      StatelessSessionHome home = (StatelessSessionHome)obj;
      log.debug("Found StatelessSessionWithPooledSSL Home");
      StatelessSession bean = home.create();
      log.debug("Created StatelessSessionWithPooledSSL");
      Principal p = bean.echoCaller("testClientCertSSLAccess");
      log.debug("bean.echoCaller(testClientCertSSLAccess) = " + p);
      try
      {
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.