Hi Lasse, ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 02, 2003 5:38 PM Subject: Could not obtain connection
> > Hello everybody, > > I'm doing some load tests with our database and I'm getting a > PersistenceBrokerException (could not obtain connection). > If I set the whenExhaustedAction to 2 it works fine, as it does > when I > increase the maxActive value. But with whenExhaustedAction set to > 1 I'm > getting the Exception. > Can I configure a "whenExhausted"-timeout like the LockTimeout, to > increase the time span until such an Exception is thrown? > yep! Use 'maxWait' attribute in connection-pool See http://db.apache.org/ojb/repository.html#connection-pool or http://db.apache.org/ojb/repository.dtd.txt regards, Armin > Regards > Lasse > ___ > > My settings in repository_database are (using DB2): > > <connection-pool > maxActive="21" > whenExhaustedAction="1" > validationQuery="" > /> > > Error message: > [org.apache.ojb.broker.accesslayer.JdbcAccessImpl] ERROR: > PersistenceBrokerException during the execution of the query: Used > ConnectionManager instance could not obtain a connection: Could > not borrow > connection from pool - > org.apache.ojb.broker.metadata.JdbcConnectionDescriptor: > [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
