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

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


public class NonPooledDatasourceServiceTest extends TestCase {

  public void testGetDatasource() {
    Connection connection = null;
    try {
      NonPooledDatasourceService service = new NonPooledDatasourceService();
      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.NonPooledDatasourceService

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.