Пример #1
0
 @Override
 public void init() throws Exception {
   super.init();
   verifyconfigurationParameters();
   if (stringIsEmpty(datasource_jndi_name)) {
     loadDriver();
   } else {
     dataSourceFromJNDI = getDataSourceFromJNDI(datasource_jndi_name.trim());
   }
   attemptSchemaInitialization();
 }
Пример #2
0
 @Override
 public void stop() {
   try {
     deleteSelf();
   } catch (SQLException e) {
     log.error(
         "Error while unregistering of our own Address from JDBC_PING database during shutdown",
         e);
   }
   super.stop();
 }