org.jboss.soa.esb.persistence.manager
Class StandaloneConnectionManager
java.lang.Object
org.jboss.soa.esb.persistence.manager.StandaloneConnectionManager
- All Implemented Interfaces:
- org.jboss.internal.soa.esb.persistence.manager.ConnectionManager
public class StandaloneConnectionManager
- extends java.lang.Object
- implements org.jboss.internal.soa.esb.persistence.manager.ConnectionManager
C3PO Connection Pooling implementation for stand-alone use, outside of a J2EE container
Field Summary |
protected com.mchange.v2.c3p0.ComboPooledDataSource |
pooledDS
|
Method Summary |
java.sql.Connection |
getConnection()
Returns a connection from the pool |
org.jboss.internal.soa.esb.persistence.manager.ConnectionManager |
getInstance()
singleton |
void |
init()
initializes the connection to the database
Reads in settings from property file (Config Manager) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pooledDS
protected com.mchange.v2.c3p0.ComboPooledDataSource pooledDS
StandaloneConnectionManager
protected StandaloneConnectionManager()
getInstance
public org.jboss.internal.soa.esb.persistence.manager.ConnectionManager getInstance()
- Description copied from interface:
org.jboss.internal.soa.esb.persistence.manager.ConnectionManager
- singleton
- Specified by:
getInstance
in interface org.jboss.internal.soa.esb.persistence.manager.ConnectionManager
init
public void init()
throws ConfigurationException
- Description copied from interface:
org.jboss.internal.soa.esb.persistence.manager.ConnectionManager
- initializes the connection to the database
Reads in settings from property file (Config Manager)
- Specified by:
init
in interface org.jboss.internal.soa.esb.persistence.manager.ConnectionManager
- Throws:
ConfigurationException
getConnection
public java.sql.Connection getConnection()
throws java.sql.SQLException
- Description copied from interface:
org.jboss.internal.soa.esb.persistence.manager.ConnectionManager
- Returns a connection from the pool
- Specified by:
getConnection
in interface org.jboss.internal.soa.esb.persistence.manager.ConnectionManager
- Throws:
java.sql.SQLException