Пример #1
0
  /**
   * Open a JE environment using the configuration specified through MBean attributes and recorded
   * within the JEMBeanHelper.
   */
  private void openEnvironment() throws MBeanException {

    try {
      if (targetEnv == null) {
        /*
         * The environment configuration has been set through
         * mbean attributes managed by the JEMBeanHelper.
         */
        targetEnv =
            new Environment(jeHelper.getEnvironmentHome(), jeHelper.getEnvironmentOpenConfig());
        resetMBeanInfo();
      }
    } catch (DatabaseException e) {
      throw new MBeanException(e);
    }
  }