activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1442761 - /activemq/trunk/activemq-spring/src/test/resources/spring/spring.xml
Date Tue, 05 Feb 2013 21:39:47 GMT
Author: gtully
Date: Tue Feb  5 21:39:46 2013
New Revision: 1442761

URL: http://svn.apache.org/viewvc?rev=1442761&view=rev
Log:
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

Modified:
    activemq/trunk/activemq-spring/src/test/resources/spring/spring.xml

Modified: activemq/trunk/activemq-spring/src/test/resources/spring/spring.xml
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-spring/src/test/resources/spring/spring.xml?rev=1442761&r1=1442760&r2=1442761&view=diff
==============================================================================
--- activemq/trunk/activemq-spring/src/test/resources/spring/spring.xml (original)
+++ activemq/trunk/activemq-spring/src/test/resources/spring/spring.xml Tue Feb  5 21:39:46
2013
@@ -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>
 



Mime
View raw message