org.mortbay.jetty.plus

Class DefaultDataSourceService

public class DefaultDataSourceService extends AbstractDataSourceService

DefaultDataSourceService An implementation of a DataSource Service using XAPool as the connection pooling implementation.

Author: janb

Constructor Summary
DefaultDataSourceService()
Method Summary
DataSourcecreatePooledDataSource(String jndiName, ConnectionPoolDataSource cpds)
Configure a DataSource that is capable of pooling Connections.

Constructor Detail

DefaultDataSourceService

public DefaultDataSourceService()

Method Detail

createPooledDataSource

public DataSource createPooledDataSource(String jndiName, ConnectionPoolDataSource cpds)
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.

Parameters: jndiName name of DataSource that client will lookup in java:comp/env cpds connection pool factory implementation

Returns: StandardPoolDataSource instance that will be registered in java:comp/env

Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.