Package org.jboss.test.cts.interfaces

Examples of org.jboss.test.cts.interfaces.StrictlyPooledSession


      StrictlyPooledSessionHome home = (StrictlyPooledSessionHome)
            ctx.lookup("ejbcts/StrictlyPooledCreateExceptionBean");

      try
      {
         StrictlyPooledSession bean = home.create();
         fail("Create did not fail, bean="+bean);
      }
      catch(CreateException e)
      {
         log.debug("Saw expected create failure", e);
      }

      for (int n = 0; n < MAX_SIZE; n++)
      {
         StrictlyPooledSession bean = home.create();
         bean.methodA();
         bean.remove();
      }
   }
View Full Code Here


   public void run()
   {
      log.debug("Begin run, this="+this);
      try
      {
         StrictlyPooledSession session = home.create();
         session.methodA();
         session.remove();
      }
      catch(Exception e)
      {
         runEx = e;
      }
View Full Code Here

      StrictlyPooledSessionHome home = (StrictlyPooledSessionHome)
            ctx.lookup("ejbcts/StrictlyPooledCreateExceptionBean");

      try
      {
         StrictlyPooledSession bean = home.create();
         fail("Create did not fail, bean="+bean);
      }
      catch(CreateException e)
      {
         log.debug("Saw expected create failure", e);
      }

      for (int n = 0; n < MAX_SIZE; n++)
      {
         StrictlyPooledSession bean = home.create();
         bean.methodA();
         bean.remove();
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.cts.interfaces.StrictlyPooledSession

Copyright © 2018 www.massapicom. 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.