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

	<claim-check-in id="checkin"
			input-channel="checkinChannel"
			message-store="testMessageStore"
			output-channel="checkoutChannel"/>

	<channel id="checkoutChannel">
		<interceptors>
			<wire-tap channel="wiretap"/>
		</interceptors>
	</channel>

	<channel id="wiretap">
		<queue/>
	</channel>

	<claim-check-out id="checkout"
			input-channel="checkoutChannel"
			message-store="testMessageStore"/>
			
	<!-- claim with remove test -->
	
	<claim-check-in id="checkinA"
			input-channel="checkinChannelA"
			message-store="testMessageStore"
			output-channel="checkoutChannelA"/>

	<channel id="checkoutChannelA">
		<interceptors>
			<wire-tap channel="wiretap"/>
		</interceptors>
	</channel>

	<claim-check-out id="checkoutWithRemove"
			input-channel="checkoutChannelA"
			message-store="testMessageStore"
			remove-message="true"/>

	<beans:bean id="testMessageStore"
			class="org.springframework.integration.store.SimpleMessageStore"/>

</beans:beans>
