eclipselink connection pooling

user1796571 picture user1796571 · Feb 27, 2013 · Viewed 12.6k times · Source

If connection pooling is not defined in the persistence.xml for eclipse link, what is the default behavior?

Will it open and close a JDBC connection for every transaction? Will it create a connection pool with some defaults?

Answer

James picture James · Feb 28, 2013

The default connection pooling for EclipseLink when not using a data source is a pool of min/max 32 connections, with an initial of 1 connections. So each transaction will use a pooled connection, and not connect/disconnect.