<?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:task="http://www.springframework.org/schema/task"
	   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/task http://www.springframework.org/schema/task/spring-task.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="name">ContainerXmlSetupIntegrationTests</prop>
		<prop key="log-level">warning</prop>
	</util:properties>

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

	<gfe:pool id="client" subscription-enabled="true">
		<gfe:server host="localhost" port="${spring.data.gemfire.cache.server.port:40404}"/>
	</gfe:pool>

	<task:executor id="testTaskExecutor"/>

	<gfe:cq-listener-container id="testContainerId" pool-name="client">
		<!-- default handle method -->
		<gfe:listener ref="testBean1" query="SELECT * from /test-cq"/>
		<gfe:listener ref="testBean1" query="SELECT * from /test-cq" name="test-bean-1" method="handleQuery"/>
		<gfe:listener ref="testBean2" query="SELECT * from /test-cq" durable="false"/>
	</gfe:cq-listener-container>

	<bean id="testBean1" class="org.springframework.data.gemfire.listener.GemfireMDP"/>
	<bean id="testBean2" class="org.springframework.data.gemfire.listener.ThrowableEventListener"/>
	<bean id="handler" class="org.springframework.data.gemfire.listener.StubErrorHandler"/>

</beans>
