<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:util="http://www.springframework.org/schema/util"
	xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">


	<!--  This bean sets up property replacement so that variables can be externalized to system properties -->
	<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
		<property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
		<property name="locations">
			<list>
				<value>file:${REP_ROOT}/cds/resources/properties/cds.properties</value>
			</list>
		</property>
	</bean>

	<bean id="hdrDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
		<property name="driverClassName" value="oracle.jdbc.OracleDriver" />
		<property name="url" value="${cds.jdbc.url}" />
		<property name="username" value="${cds.jdbc.username}" />
		<property name="password" value="${cds.jdbc.password}" />
		<property name="defaultAutoCommit" value="true"/>
		<property name="accessToUnderlyingConnectionAllowed" value="true"/>
	</bean>
	
	<bean id="hdrJdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
		<constructor-arg index="0" ref="hdrDataSource" />
	</bean>	

	<bean id="sqlPlusRunner" class="gov.va.med.cds.testharness.sql.SqlPlusRunner" />

	<bean id="labSchemaOracleSqlPlusConnectionStringBuilder" class="gov.va.med.cds.testharness.sql.OracleSqlPlusConnectionStringBuilder">
		<property name="host" value="${cds.jdbc.host}" />
		<property name="password" value="${cds.oracle.schema.lab.password}" />
		<property name="port" value="${cds.jdbc.port}" />
		<property name="ssid" value="${cds.jdbc.dbname}" />
		<property name="username" value="${cds.oracle.schema.lab.username}" />
	</bean>

	<bean id="monitorSchemaOracleSqlPlusConnectionStringBuilder" class="gov.va.med.cds.testharness.sql.OracleSqlPlusConnectionStringBuilder">
		<property name="host" value="${cds.jdbc.host}" />
		<property name="password" value="${cds.oracle.schema.monitor.password}" />
		<property name="port" value="${cds.jdbc.port}" />
		<property name="ssid" value="${cds.jdbc.dbname}" />
		<property name="username" value="${cds.oracle.schema.monitor.username}" />
	</bean>
	
	<bean id="hdrSchemaName" class="java.lang.String">
		<constructor-arg index="0">
			<value>${cds.jdbc.username}</value>
		</constructor-arg>
	</bean>
		
</beans>
