ensure no messages get stuck inflight on pooled active consumers. A little tricky to get to the bottom of exactly why the consumer remains. it is visible in jmx on occasion when it hangs. prefetch=0 avoids any inflight messages, may need a revisit

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1442761 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2013-02-05 21:39:46 +00:00
parent 5219fa1a17
commit 993377fedf
1 changed files with 6 additions and 2 deletions

View File

@ -25,7 +25,11 @@
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd"> http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">
<amq:broker brokerName="test" useJmx="false" persistent="false"> <amq:broker brokerName="test" useJmx="true" persistent="false">
<amq:managementContext>
<amq:managementContext createConnector="false" />
</amq:managementContext>
<amq:transportConnectors> <amq:transportConnectors>
<amq:transportConnector name="transport" uri="nio://0.0.0.0:61616"/> <amq:transportConnector name="transport" uri="nio://0.0.0.0:61616"/>
</amq:transportConnectors> </amq:transportConnectors>
@ -58,7 +62,7 @@
<bean id="compositeContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer"> <bean id="compositeContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer">
<property name="connectionFactory" ref="connectionFactory"/> <property name="connectionFactory" ref="connectionFactory"/>
<property name="messageListener" ref="messageListener"/> <property name="messageListener" ref="messageListener"/>
<property name="destinationName" value="TEST.>?consumer.prefetchSize=1"/> <property name="destinationName" value="TEST.>?consumer.prefetchSize=0"/>
<property name="transactionManager" ref="transactionManager"/> <property name="transactionManager" ref="transactionManager"/>
</bean> </bean>