How does OJB handle connection pooling?
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 .