james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r929939 - in /james/server/trunk: spoolmanager/src/main/java/org/apache/james/transport/camel/ spring-deployment/src/main/config/james/
Date Thu, 01 Apr 2010 11:49:40 GMT
Author: norman
Date: Thu Apr  1 11:49:40 2010
New Revision: 929939

URL: http://svn.apache.org/viewvc?rev=929939&view=rev
Log:
use maximum of 20 concurrent consumers as default. 50 was a bit high for most servers and
created many many threads 

Modified:
    james/server/trunk/spoolmanager/src/main/java/org/apache/james/transport/camel/ActiveMQProcessorRouteBuilder.java
    james/server/trunk/spoolmanager/src/main/java/org/apache/james/transport/camel/JMSProcessorRouteBuilder.java
    james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml

Modified: james/server/trunk/spoolmanager/src/main/java/org/apache/james/transport/camel/ActiveMQProcessorRouteBuilder.java
URL: http://svn.apache.org/viewvc/james/server/trunk/spoolmanager/src/main/java/org/apache/james/transport/camel/ActiveMQProcessorRouteBuilder.java?rev=929939&r1=929938&r2=929939&view=diff
==============================================================================
--- james/server/trunk/spoolmanager/src/main/java/org/apache/james/transport/camel/ActiveMQProcessorRouteBuilder.java
(original)
+++ james/server/trunk/spoolmanager/src/main/java/org/apache/james/transport/camel/ActiveMQProcessorRouteBuilder.java
Thu Apr  1 11:49:40 2010
@@ -26,7 +26,7 @@ package org.apache.james.transport.camel
  */
 public class ActiveMQProcessorRouteBuilder extends AbstractProcessorRouteBuilder {
 
-	private int maxConcurrentConsumers = 50;
+	private int maxConcurrentConsumers = 20;
 
 	public void setMaxConcurrentConsumers(int maxConcurrentConsumers) {
 		this.maxConcurrentConsumers = maxConcurrentConsumers;

Modified: james/server/trunk/spoolmanager/src/main/java/org/apache/james/transport/camel/JMSProcessorRouteBuilder.java
URL: http://svn.apache.org/viewvc/james/server/trunk/spoolmanager/src/main/java/org/apache/james/transport/camel/JMSProcessorRouteBuilder.java?rev=929939&r1=929938&r2=929939&view=diff
==============================================================================
--- james/server/trunk/spoolmanager/src/main/java/org/apache/james/transport/camel/JMSProcessorRouteBuilder.java
(original)
+++ james/server/trunk/spoolmanager/src/main/java/org/apache/james/transport/camel/JMSProcessorRouteBuilder.java
Thu Apr  1 11:49:40 2010
@@ -25,7 +25,7 @@ package org.apache.james.transport.camel
  */
 public class JMSProcessorRouteBuilder extends AbstractProcessorRouteBuilder{
 
-	private int maxConcurrentConsumers = 50;
+	private int maxConcurrentConsumers = 20;
 
 	public void setMaxConcurrentConsumers(int maxConcurrentConsumers) {
 		this.maxConcurrentConsumers = maxConcurrentConsumers;

Modified: james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml?rev=929939&r1=929938&r2=929939&view=diff
==============================================================================
--- james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml (original)
+++ james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml Thu Apr  1
11:49:40 2010
@@ -129,7 +129,9 @@
      <bean id="pollingjms"  class="org.apache.james.transport.camel.JMSSelectorPollingComponent"/>
 
      <!-- Build the camelroute from the spoolmanager.xml using ActiveMQ as producer and
consumer-->
-     <bean id="spoolmanager" name="processorRoute" class="org.apache.james.transport.camel.ActiveMQProcessorRouteBuilder"/>
+     <bean id="spoolmanager" name="processorRoute" class="org.apache.james.transport.camel.ActiveMQProcessorRouteBuilder">
+         <property name="maxConcurrentConsumers" value="20"/>
+     </bean>
  
  
 
@@ -162,7 +164,7 @@
     
     <!-- mailserver implementation which use activemq for spooling the mail
 -->
-	<bean id="mailserver" name="James" class="org.apache.james.ActiveMQMailServer"/>
+    <bean id="mailserver" name="James" class="org.apache.james.ActiveMQMailServer"/>
 	
 	<bean id="mailetcontext" class="org.apache.james.JamesMailetContext"/>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message