james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hb...@apache.org
Subject cvs commit: jakarta-james/src/org/apache/james/transport JamesSpoolManager.java
Date Sat, 21 Apr 2001 21:27:47 GMT
hbedi       01/04/21 14:27:47

  Modified:    src/org/apache/james/transport JamesSpoolManager.java
  Log:
  Split code into blocks.
  Logger related changes. NNTP was doing too much logging. server.xml is
  generated from assembly.xml
  assembly.xml contains configuration information
  MailStore does not use URLs. This was causing MalformedURLException.
  
  Revision  Changes    Path
  1.30      +5 -3      jakarta-james/src/org/apache/james/transport/JamesSpoolManager.java
  
  Index: JamesSpoolManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/org/apache/james/transport/JamesSpoolManager.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- JamesSpoolManager.java	2001/04/21 05:43:50	1.29
  +++ JamesSpoolManager.java	2001/04/21 21:27:46	1.30
  @@ -77,7 +77,7 @@
               getLogger().error("Cannot open private SpoolRepository");
               throw e;
           }
  -        getLogger().info("Private SpoolRepository Spool opened");
  +        getLogger().info("Private SpoolRepository Spool opened: "+spool.hashCode());
           //compMgr.put("org.apache.james.services.SpoolRepository", (Component)spool);
           //spool = (SpoolRepository) compMgr.lookup("org.apache.james.services.SpoolRepository");
           mailetcontext = (MailetContext) compMgr.lookup("org.apache.mailet.MailetContext");
  @@ -163,7 +163,8 @@
                   throw ex;
               }
           }
  -        while ( threads-- > 0 )
  +        getLogger().info("Spooler Manager uses "+threads+" Thread(s)");
  +        for ( int i = 0 ; i < threads ; i++ )
               workerPool.execute(this);
       }
   
  @@ -172,7 +173,8 @@
        */
       public void run() {
   
  -        getLogger().info("run JamesSpoolManager");
  +        getLogger().info("run JamesSpoolManager: "+Thread.currentThread().getName());
  +        getLogger().info("spool="+spool.getClass().getName());
           while(true) {
   
               try {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Mime
View raw message