Esempio n. 1
0
 // the mbean works without this, but if called we start populating the pool early
 public void start() throws Exception {
   // System.err.println("Bound C3P0 PooledDataSource to name '" + jndiName + "'. Starting...");
   logger.log(MLevel.INFO, "Bound C3P0 PooledDataSource to name ''{0}''. Starting...", jndiName);
   combods.getNumBusyConnectionsDefaultUser(); // just touch the datasource to start it up.
 }
Esempio n. 2
0
 public int getNumBusyConnectionsDefaultUser() throws SQLException {
   return combods.getNumBusyConnectionsDefaultUser();
 }