<?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:util="http://www.springframework.org/schema/util"
	   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	   xsi:schemaLocation="
        http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/context https://www.springframework.org/schema/context/spring-context.xsd
        http://www.springframework.org/schema/geode https://www.springframework.org/schema/geode/spring-geode.xsd
        http://www.springframework.org/schema/util https://www.springframework.org/schema/util/spring-util.xsd
">

	<context:property-placeholder/>

	<util:properties id="gemfireProperties">
		<prop key="name">LookupRegionWithAsyncEventQueuesAndGatewaySendersIntegrationTests</prop>
		<prop key="log-level">error</prop>
	</util:properties>

	<gfe:cache cache-xml-location="region-with-asynceventqueues-gatewaysenders-cache.xml"
			   properties-ref="gemfireProperties"/>

	<bean id="MockAsyncEventListener"
		  class="org.springframework.data.gemfire.config.xml.LookupRegionWithAsyncEventQueuesAndGatewaySendersIntegrationTests$AsyncEventListenerFactoryBean"/>


	<gfe:async-event-queue id="TestAsyncEventQueueFour">
		<gfe:async-event-listener ref="MockAsyncEventListener"/>
	</gfe:async-event-queue>

	<gfe:gateway-sender id="TestGatewaySenderFour" manual-start="true" remote-distributed-system-id="1"/>

	<gfe:lookup-region id="Example"
			async-event-queue-ids="TestAsyncEventQueueOne, TestAsyncEventQueueTwo, TestAsyncEventQueueFour"
			gateway-sender-ids="TestGatewaySenderZero, TestGatewaySenderOne, TestGatewaySenderTwo">

		<gfe:gateway-sender name="TestGatewaySenderThree" manual-start="true" remote-distributed-system-id="1"/>

		<gfe:gateway-sender-ref bean="TestGatewaySenderFour"/>

		<gfe:async-event-queue name="TestAsyncEventQueueThree">
			<gfe:async-event-listener ref="MockAsyncEventListener"/>
		</gfe:async-event-queue>

		<gfe:async-event-queue-ref bean="TestAsyncEventQueueFour"/>

	</gfe:lookup-region>

</beans>
