<?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:int-ip="http://www.springframework.org/schema/integration/ip"
	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
		http://www.springframework.org/schema/integration/ip https://www.springframework.org/schema/integration/ip/spring-integration-ip.xsd">

	<channel id="loanQuotesChannel">
		<interceptors>
			<wire-tap channel="loanSharkDetectorChannel"/>
		</interceptors>
	</channel>

	<channel id="loanSharkDetectorChannel"/>

	<filter id="loanSharkFilter" 
			input-channel="loanSharkDetectorChannel" 
			output-channel="loanSharkChannel" 
			expression="payload.rate > 5.2"/>

	<channel id="loanSharkChannel" />

	<transformer input-channel="loanSharkChannel"
			expression="payload.lender + ',' + payload.rate"
			output-channel="sharkOutChannel"/>

	<channel id="sharkOutChannel" />

	<int-ip:udp-outbound-channel-adapter id="udpOut"
			channel="sharkOutChannel"
			host="225.6.7.8"
			multicast="true"
			port="11111"/>

</beans:beans>