<?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">

	<import resource="classpath:gov/va/med/cds/client/functional/NonCaipFunctionalTestContext.xml" />

	<bean id="clinicalDataService"
		class="gov.va.med.cds.client.ClinicalDataServiceDelegate">
		<property name="cdsSynchronous" ref="clinicalDataSourceSync" />
	</bean>

	<bean id="clinicalDataSourceSync"
		class="org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean"
		lazy-init="true">
		<property name="businessInterface"
			value="gov.va.med.cds.client.ClinicalDataServiceInterface" />
		<property name="jndiName"
			value="ejb.remote.gov.va.med.cds.ClinicalDataServiceSynchronousSession" />
		<property name="jndiEnvironment">
			<props>
				<prop key="java.naming.factory.initial">
					${cds.client.java.naming.factory.initial}
				</prop>
				<prop key="java.naming.provider.url">
					${cds.client.java.naming.provider.url}
				</prop>
				<prop key="java.naming.security.principal">
					${cds.appserver.admin.username}
				</prop>
				<prop key="java.naming.security.credentials">
					${cds.appserver.admin.password}
				</prop>
			</props>
		</property>
	</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="cdsServiceExt"
 		class="org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean"
 		lazy-init="true">
 		<property name="businessInterface"
 			value="gov.va.med.cds.client.ClinicalDataServiceExtendedInterface" />
 		<property name="jndiName"
 			value="ejb.remote.gov.va.med.cds.ClinicalDataServiceSynchronousSession" />
 		<property name="jndiEnvironment">
 			<props>
 				<prop key="java.naming.factory.initial">
 					${cds.client.java.naming.factory.initial}
 				</prop>
 				<prop key="java.naming.provider.url">
 					${cds.client.java.naming.provider.url}
 				</prop>
 				<prop key="java.naming.security.principal">
 					${cds.appserver.admin.username}
 				</prop>
 				<prop key="java.naming.security.credentials">
 					${cds.appserver.admin.password}
 				</prop>
 			</props>
 		</property>
 	</bean>

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

	<bean id="monitorSchemaOracleSqlPlusConnectionStringBuilder"
		class="gov.va.med.cds.testharness.sql.OracleSqlPlusConnectionStringBuilder"
		autowire="no" autowire-candidate="false">
		<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="loggerSchemaOracleSqlPlusConnectionStringBuilder"
		class="gov.va.med.cds.testharness.sql.OracleSqlPlusConnectionStringBuilder"
		autowire="no" autowire-candidate="false">
		<property name="host" value="${cds.jdbc.host}" />
		<property name="password" value="${cds.oracle.schema.logger.password}" />
		<property name="port" value="${cds.jdbc.port}" />
		<property name="ssid" value="${cds.jdbc.dbname}" />
		<property name="username" value="${cds.oracle.schema.logger.username}" />
	</bean>

	<bean id="hdrSchemaName" class="java.lang.String">
		<constructor-arg index="0"><value>${cds.jdbc.username}</value></constructor-arg>
	</bean>
	
</beans>
