INT-2875 Fix CPU Usage In JMS Test

Reply Container was spinning receiving StubMessages.

Set auto-startup to false on the gateways configured with
a <reply-listener/>.
This commit is contained in:
Gary Russell
2013-01-09 12:12:29 -05:00
committed by Gunnar Hillert
parent f3b1c9d9d2
commit c958b243d3

View File

@@ -13,9 +13,10 @@
<si:channel id="requestChannel"/>
<jms:outbound-gateway id="jmsGateway"
request-destination-name="requestQueue"
request-channel="requestChannel"
delivery-persistent="true">
request-destination-name="requestQueue"
request-channel="requestChannel"
delivery-persistent="true"
auto-startup="false">
<jms:reply-listener
acknowledge="transacted"
concurrent-consumers="4"
@@ -39,7 +40,8 @@
<jms:outbound-gateway id="advised"
request-destination-name="requestQueue"
request-channel="requestChannel"
delivery-persistent="true">
delivery-persistent="true"
auto-startup="false">
<jms:request-handler-advice-chain>
<bean class="org.springframework.integration.jms.config.JmsOutboundGatewayParserTests$FooAdvice" />
</jms:request-handler-advice-chain>