<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	   xmlns:context="http://www.springframework.org/schema/context"
	   xmlns:gfe="http://www.springframework.org/schema/geode"
	   xmlns:p="http://www.springframework.org/schema/p"
	   xmlns:util="http://www.springframework.org/schema/util"
	   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.xsd
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
	   	http://www.springframework.org/schema/geode http://www.springframework.org/schema/geode/spring-geode.xsd
	   	http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
">

	<context:property-placeholder/>

	<util:properties id="gemfireProperties">
		<prop key="log-level">warning</prop>
	</util:properties>

	<gfe:client-cache properties-ref="gemfireProperties"/>

	<gfe:pool>
		<gfe:server host="localhost" port="${spring.data.gemfire.cache.server.port:40404}"/>
	</gfe:pool>

	<gfe:client-region id="Parent" shortcut="PROXY">
		<gfe:client-region name="Child" shortcut="PROXY"/>
	</gfe:client-region>

	<bean id="parentTemplate" class="org.springframework.data.gemfire.GemfireTemplate" p:region-ref="Parent"/>

	<bean id="childTemplate" class="org.springframework.data.gemfire.GemfireTemplate" p:region-ref="/Parent/Child"/>

</beans>
