public class SimpleConnectionFactory extends ConnectionFactory
PooledConnectionFactory or ManagedConnectionFactory should rather be used.| Constructor and Description |
|---|
SimpleConnectionFactory() |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection()
Fetches a connection from the factory.
|
int |
getConnectionCount() |
String |
getConnectionUrl() |
String |
getPassword() |
String |
getUserName() |
void |
releaseConnection(Connection conn)
Destroys a connection.
|
void |
start(ConnectionFactoryConfig config,
ClassLoader classLoader)
Starts the connection factory.
|
void |
stop()
Closes the connection factory, including all allocated connections etc.
|
String |
toString() |
getConnectionFactorypublic void start(ConnectionFactoryConfig config, ClassLoader classLoader) throws CacheLoaderException
ConnectionFactorystart in class ConnectionFactoryCacheLoaderExceptionpublic void stop()
ConnectionFactorystop in class ConnectionFactorypublic Connection getConnection() throws CacheLoaderException
ConnectionFactorygetConnection in class ConnectionFactoryCacheLoaderExceptionpublic void releaseConnection(Connection conn)
ConnectionFactoryreleaseConnection in class ConnectionFactorypublic String getConnectionUrl()
public String getUserName()
public String getPassword()
public int getConnectionCount()
Copyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.