User: user57  
  Date: 01/08/17 15:22:55

  Modified:    src/main/org/jboss/jms/asf StdServerSessionPool.java
  Log:
   o using counter to give thread pool worker threads unique names (which help
     improvide their debugablity)
  
  Revision  Changes    Path
  1.12      +6 -2      jboss/src/main/org/jboss/jms/asf/StdServerSessionPool.java
  
  Index: StdServerSessionPool.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/jms/asf/StdServerSessionPool.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- StdServerSessionPool.java 2001/08/16 04:06:21     1.11
  +++ StdServerSessionPool.java 2001/08/17 22:22:55     1.12
  @@ -47,7 +47,7 @@
    * <p>Created: Thu Dec  7 17:02:03 2000
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Peter Antman</a>.
  - * @version $Revision: 1.11 $
  + * @version $Revision: 1.12 $
    */
   public class StdServerSessionPool
      implements ServerSessionPool
  @@ -137,8 +137,12 @@
         executor.setKeepAliveTime(1000*30);
         executor.waitWhenBlocked();
         executor.setThreadFactory(new ThreadFactory() {
  +            private volatile int count = 0;
  +            
               public Thread newThread(final Runnable command) {
  -               return new Thread(threadGroup, command, "Thread Pool Worker");
  +               return new Thread(threadGroup,
  +                                 command,
  +                                 "Thread Pool Worker-" + count++);
               }
            });
   
  
  
  

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

Reply via email to