org.mortbay.jetty.plus
Class DefaultDataSourceService
- LifeCycle, Service
public class DefaultDataSourceService
DefaultDataSourceService
An implementation of a DataSource Service using XAPool as the
connection pooling implementation.
DataSource | createPooledDataSource(String jndiName, ConnectionPoolDataSource cpds) - Configure a DataSource that is capable of pooling Connections.
|
DefaultDataSourceService
public DefaultDataSourceService()
createPooledDataSource
public DataSource createPooledDataSource(String jndiName,
ConnectionPoolDataSource cpds)
throws Exception
Configure a DataSource that is capable of pooling Connections.
This is accomplished by use of the XAPool connection pooling manager.
To set up the pool configuration, call methods on the StandardPoolDataSource
return object.
- createPooledDataSource in interface AbstractDataSourceService
jndiName
- name of DataSource that client will lookup in java:comp/envcpds
- connection pool factory implementation
- StandardPoolDataSource instance that will be registered in java:comp/env
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.