title: cannot find symbol ds.setMaxActive(MAX_ACTIVE);
body: <p>I am trying to Configure Oracle DataSource Using Commons DBCP but its throwing subject error </p>
  
  <p>I am working on CentOS</p>
  
  <pre><code>
   private String driverClassName="oracle.jdbc.driver.OracleDriver" ;
   private String url="jdbc:oracle:thin:@164.173.28.18:1521:XE";
   private String userName="username";
   private String password="password";
   private static int MAX_ACTIVE= 10;
   private BasicDataSource ds = null;
  
   public void init() throws SQLException{
    ds = new BasicDataSource();
    ds.setDriverClassName(driverClassName);
    ds.setPassword(password);
    ds.setUsername(userName);
    ds.setUrl(url);
    ds.setMaxActive(MAX_ACTIVE);
    //check connections
    ds.getConnection();  
   }
  
  
   public Connection getOracleConnection() throws SQLException{
    return ds.getConnection();
   }
  </code></pre>
  
  <p>How can I fix </p>
  
  <pre><code>DB.java:27: error: cannot find symbol
    ds.setMaxActive(MAX_ACTIVE);                                                                                              ^
    symbol:   method setMaxActive(int)
    location: variable ds of type BasicDataSource
  1 error
  </code></pre>