db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/util/pooling PoolConfiguration.java
Date Wed, 11 Feb 2004 19:35:25 GMT
arminw      2004/02/11 11:35:25

  Modified:    src/java/org/apache/ojb/broker/util/pooling
                        PoolConfiguration.java
  Log:
  allow negative values for 'maxActive' property
  (-1 enables infinite connection pool size)
  
  Revision  Changes    Path
  1.8       +2 -9      db-ojb/src/java/org/apache/ojb/broker/util/pooling/PoolConfiguration.java
  
  Index: PoolConfiguration.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/pooling/PoolConfiguration.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- PoolConfiguration.java	11 Jan 2004 01:22:10 -0000	1.7
  +++ PoolConfiguration.java	11 Feb 2004 19:35:25 -0000	1.8
  @@ -237,14 +237,7 @@
   
       public void setMaxActive(int maxActive)
       {
  -        if (maxActive > 0)
  -        {
  -            this.setProperty(MAX_ACTIVE, EMPTY + maxActive);
  -        }
  -        else
  -        {
  -            LoggerFactory.getDefaultLogger().error("Size for connection pool must >
0. Value was " + maxActive);
  -        }
  +        this.setProperty(MAX_ACTIVE, EMPTY + maxActive);
       }
   
       public int getMaxIdle()
  
  
  

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


Mime
View raw message