DBResources.java [src/java/m/comet/utils] 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-2017, 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 m.comet.utils;

import static m.comet.utils.DBResources.*;
import csip.annotations.Resource;
import static csip.annotations.ResourceType.JDBC;

/**
 *
 * @author rumpal
 */
@Resource(type = JDBC, file = "${crdb.db}", id = CRDB, env = {
    "removeAbandoned=false", "defaultReadOnly=true",
    "jdbcInterceptors=org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;"
    + "org.apache.tomcat.jdbc.pool.interceptor.StatementFinalizer;"
    + "org.apache.tomcat.jdbc.pool.interceptor.ResetAbandonedTimer"
})
@Resource(type = JDBC, file = "${sdm.rest.db}", id = SDM_REST, env = {
    "driverClassName=csip.sdm.SDMDriver", "validationQuery=SELECT 1 FROM mapunit;",
    "maxWait=300000", "testOnBorrow=false"
})

public interface DBResources {

    static final String CRDB = "crdb";
    static final String SDM_REST = "SDMDriver";
}