示例#1
0
文件: ODEServer.java 项目: rrialq/ode
  private void initDataSource() throws ServletException {
    _db = Database.create(_odeConfig);
    _db.setTransactionManager(_txMgr);
    _db.setWorkRoot(_workRoot);

    try {
      _db.start();
    } catch (Exception ex) {
      String errmsg = __msgs.msgOdeDbConfigError();
      __log.error(errmsg, ex);
      throw new ServletException(errmsg, ex);
    }
  }