Package org.pentaho.platform.engine.services.connection.datasource.dbcp

Examples of org.pentaho.platform.engine.services.connection.datasource.dbcp.PooledDatasourceService


  public void testConnectionPoolWhenExhausted() {
    // startTest();
    //   info("Testing Connecton Pooling"); //$NON-NLS-1$
    Connection connection = null;
    try {
      PooledDatasourceService service = new PooledDatasourceService();
      DataSource ds = service.getDataSource( "SampleData" );
      for ( int i = 0; i < 10; i++ ) {
        connection = ds.getConnection();
        System.out.println( "Got the " + ( i + 1 ) + " Connection" );
      }
      fail( "Not expected to reach here" );
View Full Code Here

TOP

Related Classes of org.pentaho.platform.engine.services.connection.datasource.dbcp.PooledDatasourceService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.