ServiceResources.java [src/java/eofdb] Revision: default  Date:
/*
 * $Id$
 *
 * This file is part of the Cloud Services Integration Platform (CSIP),
 * a Model-as-a-Service framework, API, and application suite.
 *
 * 2012-2020, OMSLab, Colorado State University.
 *
 * OMSLab licenses this file to you under the MIT license.
 * See the LICENSE file in the project root for more information.
 */
package eofdb;

// LMOD SQL DB
import csip.annotations.Resource;
import static csip.annotations.ResourceType.JDBC;
import static eofdb.ServiceResources.*;

@Resource(type = JDBC,
        file = "${npad.db}",
        id = NPAD_ID,
        env = {"maxWait=6000000",
          "jmxEnabled=false",
          "logAbandoned=true",
          "removeAbandonedTimeout=3000",
          "testOnBorrow=true",
          "validationQuery=SELECT 1",
          "testOnReturn=false",
          "validationInterval=30000",
          "timeBetweenEvictionRunsMillis=30000",
          "removeAbandoned=true",
          "defaultAutoCommit=false"
        }
)

@Resource(type = JDBC,
        file = "${nrt.db}",
        id = NRT_ID,
        env = {"maxWait=6000000",
          "jmxEnabled=false",
          "logAbandoned=true",
          "removeAbandonedTimeout=3000",
          "testOnBorrow=true",
          "validationQuery=SELECT 1",
          "testOnReturn=false",
          "validationInterval=30000",
          "timeBetweenEvictionRunsMillis=30000",
          "removeAbandoned=true",
          "defaultAutoCommit=false"
        }
)

@Resource(type = JDBC,
        file = "${econtracts.db}",
        id = ECONTRACTS_ID,
        env = {"maxWait=6000000",
          "jmxEnabled=false",
          "logAbandoned=true",
          "removeAbandonedTimeout=3000",
          "testOnBorrow=true",
          "validationQuery=SELECT 1",
          "testOnReturn=false",
          "validationInterval=30000",
          "timeBetweenEvictionRunsMillis=30000",
          "removeAbandoned=true",
          "defaultAutoCommit=false"
        }
)
/**
 * Shared MRRP Service resources.
 *
 * @author lyaege
 */
public interface ServiceResources {
  static final String NPAD_ID = "npad";
  static final String NRT_ID = "nrt";
  static final String ECONTRACTS_ID = "econtracts";

}