User: chirino 
  Date: 01/06/23 21:07:16

  Modified:    src/main/org/jbossmq SpyConnection.java
  Log:
  Named all the threads that are created by the JBossMQ server so that can
  be easier to track.
  
  Changed the server so that it uses the PooledExector thread pool.  This
  Should give the server a high level of multithreading while conserving
  system resources when not in heavy use.
  
  Revision  Changes    Path
  1.8       +1 -2      jbossmq/src/main/org/jbossmq/SpyConnection.java
  
  Index: SpyConnection.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbossmq/src/main/org/jbossmq/SpyConnection.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- SpyConnection.java        2001/06/22 03:16:02     1.7
  +++ SpyConnection.java        2001/06/24 04:07:16     1.8
  @@ -40,7 +40,7 @@
    *   @author Norbert Lataille ([EMAIL PROTECTED])
    *   @author Hiram Chirino ([EMAIL PROTECTED])
    * 
  - *   @version $Revision: 1.7 $
  + *   @version $Revision: 1.8 $
    */
   public class SpyConnection implements java.io.Serializable, javax.jms.Connection {
        //////////////////////////////////////////////////////////////
  @@ -603,8 +603,7 @@
                // up to 100 threads if the buffer gets full.
                // allowing them to  die if they are not used for 1 minute.
                /// clients block if both the buffer is full and all 100 threads are 
busy:
  -             PooledExecutor pool = new PooledExecutor();
  -             pool = new PooledExecutor(new BoundedBuffer(10), 50);
  +             PooledExecutor pool = new PooledExecutor(new BoundedBuffer(10), 50);
                pool.setMinimumPoolSize(1);
                pool.setKeepAliveTime(1000 * 60 * 1);
                pool.createThreads(1);
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to