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

	<context:property-placeholder location="classpath:test.properties"/>

	<xmpp:xmpp-connection
			id="testConnection"
			user="${user.1.login}"
			password="${user.1.password}"
			host="${user.1.host}"
			service-name="${user.1.service}"/>

	<xmpp:inbound-channel-adapter channel="inboundChatChannel" xmpp-connection="testConnection"
								  payload-expression="#root"/>

	<channel id="inboundChatChannel"/>

	<service-activator input-channel="inboundChatChannel" ref="xmppMessageConsumer"/>

	<beans:bean id="xmppMessageConsumer" class="org.springframework.integration.xmpp.ignore.XmppMessageConsumer"/>

</beans:beans>
