servicemix-commits mailing list archives

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

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

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

Modified: servicemix/components/engines/servicemix-bean/trunk/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/components/engines/servicemix-bean/trunk/pom.xml?rev=679574&r1=679573&r2=679574&view=diff
==============================================================================
--- servicemix/components/engines/servicemix-bean/trunk/pom.xml (original)
+++ servicemix/components/engines/servicemix-bean/trunk/pom.xml Thu Jul 24 15:13:16 2008
@@ -42,12 +42,20 @@
       org.apache.commons.jexl*;resolution:=optional,
       org.apache.servicemix;resolution:=optional,
       org.apache.servicemix.client*;resolution:=optional,
+      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,
+      org.springframework.beans.factory.xml,
       *
   	</servicemix.osgi.import>
+    <servicemix.osgi.export>
+      org.apache.servicemix.bean*;version=${project.version},
+      META-INF.services.org.apache.xbean.spring.http.servicemix.apache.org.bean
+    </servicemix.osgi.export>
   </properties>
 
   <scm>

Modified: servicemix/components/engines/servicemix-bean/trunk/src/main/resources/META-INF/spring/servicemix-bean.xml
URL: http://svn.apache.org/viewvc/servicemix/components/engines/servicemix-bean/trunk/src/main/resources/META-INF/spring/servicemix-bean.xml?rev=679574&r1=679573&r2=679574&view=diff
==============================================================================
--- servicemix/components/engines/servicemix-bean/trunk/src/main/resources/META-INF/spring/servicemix-bean.xml
(original)
+++ servicemix/components/engines/servicemix-bean/trunk/src/main/resources/META-INF/spring/servicemix-bean.xml
Thu Jul 24 15:13:16 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-bean" class="org.apache.servicemix.bean.BeanComponent">
+        <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-bean">
+        <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