Exemplo n.º 1
0
 public void removeDataSource(String dataSource) {
   JdbcConnectPool pool = findDataSource(dataSource);
   if (pool != null) {
     pool.stopCheckThread();
     pool.destory();
     this.pools.remove(dataSource);
     pool = null;
   }
 }
Exemplo n.º 2
0
 public void destory() {
   if (this.pools != null) {
     Enumeration enum1 = this.pools.keys();
     while (enum1.hasMoreElements()) {
       String s = (String) enum1.nextElement();
       JdbcConnectPool pool = (JdbcConnectPool) this.pools.get(s);
       pool.stopCheckThread();
       pool.destory();
       this.pools.remove(s);
       pool = null;
     }
     this.pools.clear();
   }
 }