Connections pool



Does ObjectDB keeps and reuses a pool of connections as MySQL JDBC driver does? I mean when it's used in a container like Tomcat, Glassfish, JBoss etc.

Thank you.


Yes. Every EntityManagerFactory instance manages a pool of connections and reuses them when it creates new EntityManager instances.

By default the maximum connection pool size is 50.

You can change it in the persistence.xml file, for example to maximum 100 connections:

    <property name="javax.jdo.option.MaxPool" value="100"/>
ObjectDB Support

Great! Thank you!