mirror of https://github.com/apache/activemq.git
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:
parent
5219fa1a17
commit
993377fedf
|
@ -25,7 +25,11 @@
|
|||
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">
|
||||
|
||||
<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:transportConnector name="transport" uri="nio://0.0.0.0:61616"/>
|
||||
</amq:transportConnectors>
|
||||
|
@ -58,7 +62,7 @@
|
|||
<bean id="compositeContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer">
|
||||
<property name="connectionFactory" ref="connectionFactory"/>
|
||||
<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"/>
|
||||
</bean>
|
||||
|
||||
|
|
Loading…
Reference in New Issue