<?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-xmpp="http://www.springframework.org/schema/integration/xmpp"
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns:util="http://www.springframework.org/schema/util"
	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/util https://www.springframework.org/schema/util/spring-util.xsd
		http://www.springframework.org/schema/context https://www.springframework.org/schema/context/spring-context.xsd">

	<context:property-placeholder properties-ref="props"/>

	<util:properties id="props">
		<prop key="sub.mode">reject_all</prop>
	</util:properties>

	<int-xmpp:xmpp-connection id="connection"
							  user="happy.user"
							  password="blah"
							  host="localhost"
							  auto-startup="false"
							  resource="SpringSource"
							  port="6222"
							  service-name="foogle.com"
							  subscription-mode="${sub.mode}"/>

</beans>
