servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r679576 - in /servicemix/components/engines/servicemix-eip/trunk: pom.xml src/main/resources/META-INF/spring/servicemix-eip.xml
Date Thu, 24 Jul 2008 22:14:42 GMT
Author: gnodet
Date: Thu Jul 24 15:14:38 2008
New Revision: 679576

URL: http://svn.apache.org/viewvc?rev=679576&view=rev
Log:
Allow the thread pool to be configured in OSGi, fix metadata

Modified:
    servicemix/components/engines/servicemix-eip/trunk/pom.xml
    servicemix/components/engines/servicemix-eip/trunk/src/main/resources/META-INF/spring/servicemix-eip.xml

Modified: servicemix/components/engines/servicemix-eip/trunk/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/components/engines/servicemix-eip/trunk/pom.xml?rev=679576&r1=679575&r2=679576&view=diff
==============================================================================
--- servicemix/components/engines/servicemix-eip/trunk/pom.xml (original)
+++ servicemix/components/engines/servicemix-eip/trunk/pom.xml Thu Jul 24 15:14:38 2008
@@ -50,6 +50,7 @@
         org.apache.servicemix.common,
         org.apache.servicemix.common.osgi,
         org.apache.servicemix.components*;resolution:=optional,
+        org.apache.servicemix.executors.impl,
         org.apache.servicemix.expression*;resolution:=optional,
         org.apache.servicemix.jbi*;resolution:=optional,
         org.apache.xbean.spring.context.v2,

Modified: servicemix/components/engines/servicemix-eip/trunk/src/main/resources/META-INF/spring/servicemix-eip.xml
URL: http://svn.apache.org/viewvc/servicemix/components/engines/servicemix-eip/trunk/src/main/resources/META-INF/spring/servicemix-eip.xml?rev=679576&r1=679575&r2=679576&view=diff
==============================================================================
--- servicemix/components/engines/servicemix-eip/trunk/src/main/resources/META-INF/spring/servicemix-eip.xml
(original)
+++ servicemix/components/engines/servicemix-eip/trunk/src/main/resources/META-INF/spring/servicemix-eip.xml
Thu Jul 24 15:14:38 2008
@@ -20,6 +20,7 @@
 <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:osgi="http://www.springframework.org/schema/osgi"
+       xmlns:osgix="http://www.springframework.org/schema/osgi-compendium"
        xmlns:util="http://www.springframework.org/schema/util"
        xsi:schemaLocation="
   http://www.springframework.org/schema/beans
@@ -27,9 +28,22 @@
   http://www.springframework.org/schema/util
   http://www.springframework.org/schema/util/spring-util.xsd
   http://www.springframework.org/schema/osgi
-  http://www.springframework.org/schema/osgi/spring-osgi.xsd">
+  http://www.springframework.org/schema/osgi/spring-osgi.xsd
+  http://www.springframework.org/schema/osgi-compendium
+  http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd">
 
     <bean id="servicemix-eip" class="org.apache.servicemix.eip.EIPComponent">
+        <property name="executorFactory" ref="executorFactory" />
+    </bean>
+
+    <bean id="executorFactory" class="org.apache.servicemix.executors.impl.ExecutorFactoryImpl">
+        <property name="defaultConfig">
+            <bean class="org.apache.servicemix.executors.impl.ExecutorConfig">
+                <property name="corePoolSize" value="${threadPoolCorePoolSize}"/>
+                <property name="maximumPoolSize" value="${threadPoolMaximumPoolSize}"/>
+                <property name="queueSize" value="${threadPoolQueueSize}"/>
+            </bean>
+        </property>
     </bean>
 
     <bean id="endpoint-tracker" class="org.apache.servicemix.common.osgi.EndpointTracker">
@@ -49,4 +63,12 @@
         </osgi:service-properties>
     </osgi:service>
 
+    <osgix:property-placeholder persistent-id="servicemix-eip">
+        <osgix:default-properties>
+            <prop key="threadPoolCorePoolSize">8</prop>
+            <prop key="threadPoolMaximumPoolSize">32</prop>
+            <prop key="threadPoolQueueSize">256</prop>
+        </osgix:default-properties>
+    </osgix:property-placeholder>
+
 </beans>



Mime
View raw message