|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.loaders.jdbc.connectionfactory.ConnectionFactory
org.infinispan.loaders.jdbc.connectionfactory.ManagedConnectionFactory
public class ManagedConnectionFactory
Connection factory that can be used when on managed environments, like application servers. It knows how to look into the JNDI tree at a certain location (configurable) and delegate connection management to the DataSource. In order to enable it one should set the following two properties in any Jdbc cache store:
Constructor Summary | |
---|---|
ManagedConnectionFactory()
|
Method Summary | |
---|---|
Connection |
getConnection()
Fetches a connection from the factory. |
void |
releaseConnection(Connection conn)
Destroys a connection. |
void |
start(ConnectionFactoryConfig config)
Starts the connection factory. |
void |
stop()
Closes the connection factory, including all allocated connections etc. |
Methods inherited from class org.infinispan.loaders.jdbc.connectionfactory.ConnectionFactory |
---|
getConnectionFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ManagedConnectionFactory()
Method Detail |
---|
public void start(ConnectionFactoryConfig config) throws CacheLoaderException
ConnectionFactory
start
in class ConnectionFactory
CacheLoaderException
public void stop()
ConnectionFactory
stop
in class ConnectionFactory
public Connection getConnection() throws CacheLoaderException
ConnectionFactory
getConnection
in class ConnectionFactory
CacheLoaderException
public void releaseConnection(Connection conn)
ConnectionFactory
releaseConnection
in class ConnectionFactory
|
Google Analytics | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |