<?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/gemfire"
	   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/gemfire http://www.springframework.org/schema/gemfire/spring-gemfire.xsd
		http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
">

	<context:property-placeholder location="classpath:port.properties"/>

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

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

	<gfe:pool>
		<gfe:locator host="localhost" port="${gfe.port}"/>
	</gfe:pool>

	<gfe:pool id="simple"/>

	<gfe:pool id="locator" locators="skullbox, ghostrider[12480]"/>

	<gfe:pool id="server" free-connection-timeout="2000" idle-timeout="20000" load-conditioning-interval="10000"
			  keep-alive="true" max-connections="100" min-connections="5" multi-user-authentication="true"
			  ping-interval="5000" pr-single-hop-enabled="false" read-timeout="500" retry-attempts="5"
			  server-group="TestGroup" socket-buffer-size="65536" statistic-interval="250"
			  subscription-ack-interval="250" subscription-enabled="true" subscription-message-tracking-timeout="30000"
			  subscription-redundancy="2" thread-local-connections="false">
		<gfe:server host="localhost" port="${gfe.port.4}"/>
		<gfe:server host="localhost" port="50505"/>
	</gfe:pool>

	<gfe:pool id="locators" locators="venus[11235], mars, [12480]">
		<gfe:locator host="earth" port="54321"/>
	</gfe:pool>

	<gfe:pool id="servers" servers="skullbox[9110]">
		<gfe:server host="duke" port="21480"/>
		<gfe:server host="nukem" port="51515"/>
	</gfe:pool>

</beans>
