<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	   xmlns:int="http://www.springframework.org/schema/integration"
	   xsi:schemaLocation="http://www.springframework.org/schema/integration https://www.springframework.org/schema/integration/spring-integration.xsd
		http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd">

	<bean id="redisConnectionFactory" class="org.springframework.integration.redis.RedisContainerTest"
		  factory-method="connectionFactory"/>

	<bean id="cms" class="org.springframework.integration.redis.store.RedisChannelMessageStore">
		<constructor-arg ref="redisConnectionFactory"/>
	</bean>

	<int:channel id="testChannel1">
		<int:queue message-store="cms"/>
	</int:channel>

	<int:channel id="testChannel2">
		<int:queue message-store="cms"/>
	</int:channel>

	<bean id="priorityCms" class="org.springframework.integration.redis.store.RedisChannelPriorityMessageStore">
		<constructor-arg ref="redisConnectionFactory"/>
	</bean>

	<int:channel id="testChannel3">
		<int:priority-queue message-store="priorityCms"/>
	</int:channel>

	<int:channel id="testChannel4">
		<int:priority-queue message-store="priorityCms"/>
	</int:channel>

</beans>
