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

	<integration:channel id="input"/>

	<jms:outbound-channel-adapter id="adapter" channel="input" jms-template="template"
								  delivery-mode-expression="1"
								  time-to-live-expression="100"/>

	<bean id="template" class="org.springframework.jms.core.JmsTemplate">
		<property name="connectionFactory">
			<bean class="org.springframework.jms.connection.SingleConnectionFactory">
				<constructor-arg>
					<bean class="org.springframework.integration.jms.StubConnection">
						<constructor-arg value="target-test"/>
					</bean>
				</constructor-arg>
			</bean>
		</property>
		<property name="explicitQosEnabled" value="true"/>
		<property name="priority" value="7"/>
		<property name="timeToLive" value="12345"/>
	</bean>

</beans>
