User: starksm 
  Date: 01/11/26 20:23:16

  Modified:    src/main/org/jboss/util WorkerQueue.java
  Log:
  Change AbstractInstanceCache to use a single passivator thread for
  all deployed EJBs as a thread per container is wasteful and kills
  large deployments on systems with weak VM thread implementations.
  
  Revision  Changes    Path
  1.8       +10 -2     jboss/src/main/org/jboss/util/WorkerQueue.java
  
  Index: WorkerQueue.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/util/WorkerQueue.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- WorkerQueue.java  2001/08/03 17:15:58     1.7
  +++ WorkerQueue.java  2001/11/27 04:23:16     1.8
  @@ -12,7 +12,7 @@
    *
    * @see Executable
    * @author <a href="mailto:[EMAIL PROTECTED]";>Simone Bordet</a>
  - * @version $Revision: 1.7 $
  + * @version $Revision: 1.8 $
    */
   public class WorkerQueue
   {
  @@ -40,7 +40,15 @@
       public WorkerQueue(String threadName) 
       {
           m_queueThread = new Thread(createQueueLoop(), threadName);
  -//      m_queueThread.setPriority(Thread.MIN_PRIORITY);
  +    }
  +    /**
  +     * Creates a new worker queue with the specified thread name
  +     and daemon mode flag
  +     */
  +    public WorkerQueue(String threadName, boolean isDaemon) 
  +    {
  +        m_queueThread = new Thread(createQueueLoop(), threadName);
  +        m_queueThread.setDaemon(isDaemon);
       }
   
       // Public --------------------------------------------------------
  
  
  

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

Reply via email to