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

	<import resource="classpath:gov/va/med/cds/audit/vhimRequestAuditLoggerContext.xml"/>
	<import resource="classpath:gov/va/med/cds/audit/persistence/jms/nonWeblogicJmsAuditLogContext.xml" />
	<import resource="classpath:gov/va/med/cds/audit/persistence/hibernate/persistAuditStoreTest-context.xml" />

	<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
		<property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE"/>
	</bean>

	<bean id="loggerDataSource" class="org.apache.commons.dbcp2.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="maxTotal" value="10" />
	</bean>
	
	<bean id="loggerJdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
		<property name="dataSource" ref="loggerDataSource" />
	</bean>

	<bean id="monitorDataSource" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
		<property name="driverClassName" value="oracle.jdbc.OracleDriver" />
		<property name="url" value="${cds.jdbc.url}" />
		<property name="username" value="${cds.oracle.schema.monitor.username}" />
		<property name="password" value="${cds.oracle.schema.monitor.password}" />
		<property name="defaultAutoCommit" value="true" />
		<property name="maxTotal" value="10" />
	</bean>
	
	<bean id="monitorJdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
		<property name="dataSource" ref="monitorDataSource" />
	</bean>

	<bean id="cdsAppName" class="java.lang.String">
		<constructor-arg value="${cdsAppName}" />
	</bean>
	
	<bean id="pathwaysAppName" class="java.lang.String">
		<constructor-arg value="${pathwaysAppName}" />
	</bean>
		
</beans>