<?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" xmlns:jndi="http://www.springframework.org/schema/jndi"
	xmlns:jee="http://www.springframework.org/schema/jee"
	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
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee.xsd">

	<!-- This file is used by non-caiip tests - directejb, soap and rest based tests -->

	<!-- 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" />
	</bean>

	<bean id="xmlErrorSectionTransformResource" class="org.springframework.core.io.ClassPathResource">
		<constructor-arg value="gov/va/med/cds/testharness/xml/vhim3400/removeErrorId.xslt" />
	</bean>

	<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
		<property name="dataSource" ref="dataSource" />
	</bean>

	<bean id="dataSource" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
		<property name="driverClassName" value="oracle.jdbc.OracleDriver" />
		<property name="url" value="jdbc:oracle:thin:@${cds.jdbc.host}:${cds.jdbc.port}:${cds.jdbc.dbname}" />
		<property name="username" value="${cds.jdbc.username}" />
		<property name="password" value="${cds.jdbc.password}" />
		<property name="defaultAutoCommit" value="false" />
	</bean>

	<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
		<property name="dataSource" ref="dataSource" />
	</bean>

	<!-- Needed for soap and rest tests -->

	<bean id="psimXDataSource" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
		<property name="driverClassName" value="oracle.jdbc.OracleDriver" />
		<property name="url" value="jdbc:oracle:thin:@${ims.x.jdbc.host}:${ims.x.jdbc.port}:${ims.x.jdbc.dbname}" />
		<property name="username" value="${ims.x.jdbc.username}" />
		<property name="password" value="${ims.x.jdbc.password}" />
		<property name="defaultAutoCommit" value="false" />
	</bean>

	<bean id="psimXjdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
		<property name="dataSource" ref="psimXDataSource" />
	</bean>

	<bean id="psimVaDataSource" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
		<property name="driverClassName" value="oracle.jdbc.OracleDriver" />
		<property name="url" value="jdbc:oracle:thin:@${ims.va.jdbc.host}:${ims.va.jdbc.port}:${ims.va.jdbc.dbname}" />
		<property name="username" value="${ims.va.jdbc.username}" />
		<property name="password" value="${ims.va.jdbc.password}" />
		<property name="defaultAutoCommit" value="false" />
	</bean>

	<bean id="psimVajdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
		<property name="dataSource" ref="psimVaDataSource" />
	</bean>

	<bean id="psimDodDataSource" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
		<property name="driverClassName" value="oracle.jdbc.OracleDriver" />
		<property name="url" value="jdbc:oracle:thin:@${ims.dod.jdbc.host}:${ims.dod.jdbc.port}:${ims.dod.jdbc.dbname}" />
		<property name="username" value="${ims.dod.jdbc.username}" />
		<property name="password" value="${ims.dod.jdbc.password}" />
		<property name="defaultAutoCommit" value="false" />
	</bean>

	<bean id="psimDodjdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
		<property name="dataSource" ref="psimDodDataSource" />
	</bean>
		
</beans>
