Skip to content

Commit

Permalink
INT-1440 the QoS properties are now only applied to JmsTemplate if it…
Browse files Browse the repository at this point in the history
… is not a referenced bean
  • Loading branch information
markfisher committed Sep 13, 2010
1 parent f7bca5e commit 4db74cd
Showing 1 changed file with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?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
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/integration
http://www.springframework.org/schema/integration/spring-integration.xsd
http://www.springframework.org/schema/integration/jms
http://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"/>

<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>

0 comments on commit 4db74cd

Please sign in to comment.