Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How does OJB handle connection pooling?

connection ojb pooling
0
Posted

How does OJB handle connection pooling?

0

OJB does connection pooling per default, expect for datasources. Datasources never will be pooled. Responsible for managing the connections in OJB are implementations of the org.apache.ojb.broker.accesslayer.ConnectionFactory.java interface. There are several implementations shipped with OJB called org.apache.ojb.broker.accesslayer.ConnectionFactoryXXXImpl.java . You can find among other things a none pooling implementation and a implementation using jakarta-DBCP api. To manage the connection pooling define in your jdbc-connection-descriptor a connection-pool element. Here you can specify which ConnectionFactory implementation should be used. More info see repository section or repository.dtd .

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123