org.exolab.jms.persistence
Class DBCPConnectionManager

java.lang.Object
  |
  +--org.exolab.jms.persistence.AbstractConnectionManager
        |
        +--org.exolab.jms.persistence.DBCPConnectionManager
All Implemented Interfaces:
DBConnectionManager

public class DBCPConnectionManager
extends AbstractConnectionManager

Wrapper around the DBCP connection manager.

Version:
$Revision: 1.2 $ $Date: 2005/12/01 13:50:17 $
Author:
Tim Anderson

Constructor Summary
DBCPConnectionManager()
          Default constructor.
 
Method Summary
 java.sql.Connection getConnection()
          Retrieve a connection to the underlying database from the pool of connections.
 void init()
          Initialise the connection manager.
 
Methods inherited from class org.exolab.jms.persistence.AbstractConnectionManager
getDriver, getEvictionInterval, getMaxActive, getMaxIdle, getMinIdleTime, getPassword, getTestBeforeUse, getTestQuery, getURL, getUser, setDriver, setEvictionInterval, setMaxActive, setMaxIdle, setMinIdleTime, setPassword, setTestBeforeUse, setTestQuery, setURL, setUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBCPConnectionManager

public DBCPConnectionManager()
Default constructor.
Method Detail

init

public void init()
          throws PersistenceException
Initialise the connection manager. This must be called before a call to getConnection() is made and after all the properties have been set.
Following copied from interface: org.exolab.jms.persistence.DBConnectionManager
Throws:
PersistenceException - - if there is a problem with the init

getConnection

public java.sql.Connection getConnection()
                                  throws PersistenceException
Retrieve a connection to the underlying database from the pool of connections.
Returns:
a connection to the database
Throws:
PersistenceException - if a connection cannot be retrieved


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.