You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2008/07/25 00:14:58 UTC
svn commit: r679577 - in
/servicemix/components/engines/servicemix-saxon/trunk: pom.xml
src/main/resources/META-INF/spring/servicemix-saxon.xml
Author: gnodet
Date: Thu Jul 24 15:14:58 2008
New Revision: 679577
URL: http://svn.apache.org/viewvc?rev=679577&view=rev
Log:
Allow the thread pool to be configured in OSGi, fix metadata
Modified:
servicemix/components/engines/servicemix-saxon/trunk/pom.xml
servicemix/components/engines/servicemix-saxon/trunk/src/main/resources/META-INF/spring/servicemix-saxon.xml
Modified: servicemix/components/engines/servicemix-saxon/trunk/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/components/engines/servicemix-saxon/trunk/pom.xml?rev=679577&r1=679576&r2=679577&view=diff
==============================================================================
--- servicemix/components/engines/servicemix-saxon/trunk/pom.xml (original)
+++ servicemix/components/engines/servicemix-saxon/trunk/pom.xml Thu Jul 24 15:14:58 2008
@@ -46,6 +46,7 @@
<servicemix.osgi.import>
org.apache.servicemix.common,
org.apache.servicemix.common.osgi,
+ org.apache.servicemix.executors.impl,
org.apache.xbean.spring.context.v2,
org.springframework.beans.factory.xml,
*
Modified: servicemix/components/engines/servicemix-saxon/trunk/src/main/resources/META-INF/spring/servicemix-saxon.xml
URL: http://svn.apache.org/viewvc/servicemix/components/engines/servicemix-saxon/trunk/src/main/resources/META-INF/spring/servicemix-saxon.xml?rev=679577&r1=679576&r2=679577&view=diff
==============================================================================
--- servicemix/components/engines/servicemix-saxon/trunk/src/main/resources/META-INF/spring/servicemix-saxon.xml (original)
+++ servicemix/components/engines/servicemix-saxon/trunk/src/main/resources/META-INF/spring/servicemix-saxon.xml Thu Jul 24 15:14:58 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-saxon" class="org.apache.servicemix.saxon.SaxonComponent">
+ <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-saxon">
+ <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>