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

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

	<bean id="postURL" class="java.lang.String">
		<constructor-arg index="0"
			value="${cds.webservice.uri}/createClinicalData" />
	</bean>
	
	<bean id="postDeleteURL" class="java.lang.String">
		<constructor-arg index="0"
			value="${cds.webservice.uri}/deleteClinicalData" />
	</bean>
	
	<bean id="getURL" class="java.lang.String">
		<constructor-arg index="0"
			value="${cds.webservice.uri}/readClinicalData1" />
	</bean>
	
	<bean id="getIsAliveURL" class="java.lang.String">
		<constructor-arg index="0" value="${cds.webservice.uri}/isAlive" />
	</bean>
	
	<bean id="clinicalDataService"
		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>
	
</beans>