Home » Support » Forum » Connections pool

Connections pool

#1

Hi!

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.

#2

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
ObjectDB - Fast Object Database for Java (JPA/JDO)
#3

Great! Thank you!


Post Reply

To post a reply and/or subscribe to update notifications - please login