User: starksm 
  Date: 01/11/26 17:16:22

  Modified:    src/main/org/jboss/util Tag: Branch_2_4 WorkerQueue.java
  Log:
  Use a single daemon thread to passivate all EJBs rather than a thread
  per container as this is wasteful of threads, especially when large
  numbers of beans are deployed.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.5.6.1   +9 -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.5
  retrieving revision 1.5.6.1
  diff -u -r1.5 -r1.5.6.1
  --- WorkerQueue.java  2000/12/07 15:45:21     1.5
  +++ WorkerQueue.java  2001/11/27 01:16:21     1.5.6.1
  @@ -12,7 +12,7 @@
    *
    * @see Executable
    * @author Simone Bordet ([EMAIL PROTECTED])
  - * @version $Revision: 1.5 $
  + * @version $Revision: 1.5.6.1 $
    */
   public class WorkerQueue
   {
  @@ -40,7 +40,14 @@
       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
  +     */
  +    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