16.4. Connection Factories
In Red Hat JBoss Data Grid, all JDBC cache loaders rely on a
ConnectionFactory
implementation to obtain a database connection. This process is also known as connection management or pooling.
A connection factory can be specified using the
ConnectionFactoryClass
configuration attribute. JBoss Data Grid includes the following ConnectionFactory
implementations:
- ManagedConnectionFactory
- SimpleConnectionFactory.
16.4.1. About ManagedConnectionFactory
ManagedConnectionFactory
is a connection factory that is ideal for use within managed environments such as application servers. This connection factory can explore a configured location in the JNDI tree and delegate connection management to the DataSource
. ManagedConnectionFactory
is used within a managed environment that contains a DataSource
. This Datasource
is delegated the connection pooling.