<?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"
	xmlns:groovy="http://www.springframework.org/schema/integration/groovy"
	xsi:schemaLocation="http://www.springframework.org/schema/integration https://www.springframework.org/schema/integration/spring-integration.xsd
		http://www.springframework.org/schema/integration/groovy https://www.springframework.org/schema/integration/groovy/spring-integration-groovy.xsd
		http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd">

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

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

	<router id="groovyRouter" input-channel="referencedScriptInput">
		<groovy:script location="org/springframework/integration/groovy/config/GroovyRouterTests.groovy"/>
	</router>

	<router input-channel="inlineScriptInput">
		<groovy:script><![CDATA[
				return payload.length() > 5 ? 'longStrings' : 'shortStrings'
		]]></groovy:script>
	</router>

</beans:beans>
