<?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.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.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>classpath:gov/va/med/cds/ars/config/properties/defaultNonWeblogic.properties</value>-->
				<value>file:resources/properties/ars.properties</value>		
			</list>
		</property>
	</bean>
	
	<bean id="hdrDataSource" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
		<property name="driverClassName" value="oracle.jdbc.OracleDriver" />
		<property name="url" value="jdbc:oracle:thin:@${ars.jdbc.host}:${ars.jdbc.port}:${ars.jdbc.dbname}" />
		<property name="username" value="${ars.jdbc.username}" />
		<property name="password" value="${ars.jdbc.password}" />
		<property name="defaultAutoCommit" value="true"/>
	</bean>
	
	<bean id="hdrTransactionManager" class="org.springframework.orm.hibernate4.HibernateTransactionManager">
		<property name="sessionFactory" ref="sessionFactory"/>
	</bean>
	
	
</beans>
