<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	   xmlns:gfe="http://www.springframework.org/schema/gemfire"
	   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	   xmlns:util="http://www.springframework.org/schema/util"
	   xsi:schemaLocation="
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.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
" default-lazy-init="true">

	<util:properties id="gemfireProperties">
		<prop key="name">GatewayV6NamespaceConfig</prop>
		<prop key="mcast-port">0</prop>
		<prop key="log-level">warning</prop>
	</util:properties>

	<gfe:cache properties-ref="gemfireProperties" use-bean-factory-locator="false"/>

	<gfe:replicated-region id="region-with-gateway" enable-gateway="true" hub-id="gateway-hub"/>

    <gfe:gateway-hub id="gateway-hub" manual-start="true">
        <gfe:gateway gateway-id="gateway">
            <gfe:gateway-listener>
                <bean class="org.springframework.data.gemfire.config.xml.GemfireV6GatewayNamespaceTest.GatewayListener"/>
            </gfe:gateway-listener>
            <gfe:gateway-queue maximum-queue-memory="5" batch-size="3"
                batch-time-interval="10" />
        </gfe:gateway>
        <gfe:gateway gateway-id="gateway2">
            <gfe:gateway-endpoint port="1234" host="host1" endpoint-id="endpoint1"/>
            <gfe:gateway-endpoint port="2345" host="host2" endpoint-id="endpoint2"/>
        </gfe:gateway>
    </gfe:gateway-hub>

 	<!-- SGF-169 -->
    <gfe:gateway-hub id="uniDirectionalHub" manual-start="true" port="22222" startup-policy="none">
	</gfe:gateway-hub>

</beans>
