Class PooledConnectionFactory


  • public class PooledConnectionFactory
    extends ConnectionFactory
    Pooled connection factory that uses HikariCP by default. In order to utilise the legacy connection pool, C3P0, users must pass the system property infinispan.jdbc.c3p0.force with the value true. HikariCP property files can be specified by explicitly stating its path or name (if the file is on the classpath) via PooledConnectionFactoryConfiguration.propertyFile field. Or by ensuring that a hikari.properties file is on the classpath. Note, that the file specified by propertyField takes precedence over hikari.properties. For a complete configuration reference for C3P0 look here. The connection pool can be configured n various ways, as described here. The simplest way is by having an c3p0.properties file in the classpath. If no properties files are found for either HikariCP or C3PO then the default values of these connection pools are utilised.
    Author:
    Mircea.Markus@jboss.com, Tristan Tarrant, Ryan Emerson
    • Constructor Detail

      • PooledConnectionFactory

        public PooledConnectionFactory()