Package org.jboss.ejb3.pool

Examples of org.jboss.ejb3.pool.ThreadlocalPool.release()


         public void run()
         {
            for(int i = 0; i < 10; i++)
            {
               BeanContext ctx = pool.get();
               pool.release(ctx);
              
               ctx = null;
               used++;
            }
         }
View Full Code Here


            for(int i = 0; i < 10; i++)
            {
               BeanContext ctx = pool.get();
               BeanContext ctx2 = pool.get();
              
               pool.release(ctx2);
               ctx2 = null;
               used ++;
              
               pool.release(ctx);
               ctx = null;
View Full Code Here

              
               pool.release(ctx2);
               ctx2 = null;
               used ++;
              
               pool.release(ctx);
               ctx = null;
               used ++;
            }
         }
      };
View Full Code Here

      Container container = new MockContainer();
      int maxSize = -1;
      int timeout = -1;
      pool.initialize(container, maxSize, timeout);
      BeanContext ctx = pool.get();
      pool.release(ctx);
     
      ctx = null;
     
      gc();
      assertEquals(0, pool.getRemoveCount());
View Full Code Here

      Runnable r = new Runnable()
      {
         public void run()
         {
            BeanContext ctx = pool.get();
            pool.release(ctx);
           
            ctx = null;
            used++;
         }
      };
View Full Code Here

         public void run()
         {
            for(int i = 0; i < 10; i++)
            {
               BeanContext ctx = pool.get();
               pool.release(ctx);
              
               ctx = null;
               used++;
            }
         }
View Full Code Here

            for(int i = 0; i < 10; i++)
            {
               BeanContext ctx = pool.get();
               BeanContext ctx2 = pool.get();
              
               pool.release(ctx2);
               ctx2 = null;
               used ++;
              
               pool.release(ctx);
               ctx = null;
View Full Code Here

              
               pool.release(ctx2);
               ctx2 = null;
               used ++;
              
               pool.release(ctx);
               ctx = null;
               used ++;
            }
         }
      };
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.