Hi,

I am using OJB(cvs head from 2 weeks ago) in Tomcat 5.0. There I have several PersistenceBroker which I close after each request with PersistenceBrokerFactory.realeaseAll().

After some time I get the following error:

org.apache.ojb.broker.PBFactoryException: Borrow broker from pool failed, using PBKey org.apache.ojb.broker.PBKey: jcdAlias=intranet_tk, user=sa, password=*****
at org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.createPersistenceBroker(PersistenceBrokerFactoryDefaultImpl.java:156)
at org.apache.ojb.broker.PersistenceBrokerFactory.createPersistenceBroker(PersistenceBrokerFactory.java:125)
at kos.wnetz.system.Parameter.getPBFromName(Parameter.java:945)
at kos.wnetz.system.Parameter.getTokenPB(Parameter.java:289)
at kos.wnetz.om.Adapter.getInstance(Adapter.java:36)
at kos.wnetz.system.Parameter.createInstance(Parameter.java:842)
at kos.wnetz.system.Parameter.createInstance(Parameter.java:781)
at kos.wnetz.system.Parameter.createInstance(Parameter.java:865)
at kos.wnetz.servlets.WNetz.doRequest(WNetz.java:91)
at kos.wnetz.servlets.WNetz.doGet(WNetz.java:61)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
.....



But the thing is: I don't even use connection pooling (or so I think). I activated the line


ConnectionFactoryClass=org.apache.ojb.broker.accesslayer.ConnectionFactoryNotPooledImpl

in the OJB.properties file. So I think, that ConnectionPooling is switched off. Or do I have to change these settings in the connection-descriptors?

Do you have any suggestions?
Tino



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to