org.apache.jetspeed.components.datasource
Class BoundDBCPDatasourceComponent
java.lang.Object
org.apache.jetspeed.components.datasource.DBCPDatasourceComponent
org.apache.jetspeed.components.datasource.BoundDBCPDatasourceComponent
- All Implemented Interfaces:
- DatasourceComponent
public class BoundDBCPDatasourceComponent
- extends DBCPDatasourceComponent
Bound DBCP Data Source
- Version:
- $Id: BoundDBCPDatasourceComponent.java 516448 2007-03-09 16:25:47Z ate $
- Author:
- Scott Weaver
jndi
private JNDIComponent jndi
bindName
private String bindName
BoundDBCPDatasourceComponent
public BoundDBCPDatasourceComponent(String user,
String password,
String driverName,
String connectURI,
int maxActive,
int maxWait,
byte whenExhausted,
boolean autoCommit,
String bindName,
JNDIComponent jndi)
- Parameters:
user
- password
- driverName
- connectURI
- maxActive
- maxWait
- whenExhausted
- autoCommit
- bindName
- JNDI name to bind this javax.sql.DataSource
created by this class to.jndi
- JNDIComponent we will use to bind.
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize
in class Object
- Throws:
Throwable
start
public void start()
- Same as
DBCPDatasourceComponent.start()
but also binds these javax.sql.DataSource
created to the bindName
.
- Overrides:
start
in class DBCPDatasourceComponent
- See Also:
org.picocontainer.Startable#start()
stop
public void stop()
- Description copied from class:
DBCPDatasourceComponent
stop
- Overrides:
stop
in class DBCPDatasourceComponent
- See Also:
org.picocontainer.Startable#stop()
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.