Hi,
as I can see you are probably not closing your PB-instances. You have to
close the PB instances with PB.close() after usage. This is no
connection-pool problem but a PB-Pool problem.
Hope that helped.
Tino
ABOU LINA wrote:
I give you the stack trace about error message :
org.apache.ojb.broker.PBFactoryException: Borrow broker from pool failed,
using PBKey org.apache.ojb.broker.PBKey: jcdAlias=default, user=db2,
password=***
at
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.createPersistenceBroker(Unknown
Source)
at
org.apache.ojb.broker.core.PersistenceBrokerFactoryBaseImpl.defaultPersistenceBroker(Unknown
Source)
at
org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(Unknown
Source)
....
...
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.util.NoSuchElementException
at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(
GenericKeyedObjectPool.java:803)
... 59 more
I use DB2 as DATABASE....
On 2/23/06, ABOU LINA <[EMAIL PROTECTED]> wrote:
Hi all,
So in web application context (Tomcat), i want to configure OJB to make 10
pool connection to the database
at the startup of the application. Normaly, whene we try to get new broker
PersistenceBrokerFactory.defaultPersistenceBroker (); OJB retreive an
existing and valide connection from the pool if
not exist it create a new connection and put it in the pool. So my
question is how to make for example 10 connection
in the pool at the startup of my application.
If you have some best practice of the connection pool in the context web i
will be greatfull.
OJB 1.0.3
I m using PB not ODMG.
Default pool connection implementation.
Thx in advance.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]