servicemix-commits mailing list archives

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

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

Modified:
    servicemix/components/engines/servicemix-cxf-se/trunk/   (props changed)
    servicemix/components/engines/servicemix-cxf-se/trunk/pom.xml
    servicemix/components/engines/servicemix-cxf-se/trunk/src/main/resources/META-INF/spring/servicemix-cxf-se.xml

Propchange: servicemix/components/engines/servicemix-cxf-se/trunk/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jul 24 15:14:21 2008
@@ -6,3 +6,4 @@
 .pmd
 .settings
 eclipse-classes
+*.iml

Modified: servicemix/components/engines/servicemix-cxf-se/trunk/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/components/engines/servicemix-cxf-se/trunk/pom.xml?rev=679575&r1=679574&r2=679575&view=diff
==============================================================================
--- servicemix/components/engines/servicemix-cxf-se/trunk/pom.xml (original)
+++ servicemix/components/engines/servicemix-cxf-se/trunk/pom.xml Thu Jul 24 15:14:21 2008
@@ -47,8 +47,10 @@
     <servicemix.osgi.import>
         javax.jws,
         javax.xml.bind.annotation,
+        org.apache.servicemix.common,
         org.apache.servicemix.common.osgi,
         org.apache.servicemix.client*;resolution:=optional,
+        org.apache.servicemix.executors.impl,
         org.apache.servicemix.jbi.container*;resolution:=optional,
         org.apache.servicemix.jbi.framework*;resolution:=optional,
         org.apache.xbean.spring.context.v2,
@@ -60,7 +62,7 @@
         *
     </servicemix.osgi.import>
     <servicemix.osgi.export>
-        org.apache.servicemix*;version=${project.version},
+        org.apache.servicemix.cxfse*;version=${project.version},
         META-INF.services.org.apache.xbean.spring.http.servicemix.apache.org.cxfse
     </servicemix.osgi.export>
     <servicemix.osgi.bundles>

Modified: servicemix/components/engines/servicemix-cxf-se/trunk/src/main/resources/META-INF/spring/servicemix-cxf-se.xml
URL: http://svn.apache.org/viewvc/servicemix/components/engines/servicemix-cxf-se/trunk/src/main/resources/META-INF/spring/servicemix-cxf-se.xml?rev=679575&r1=679574&r2=679575&view=diff
==============================================================================
--- servicemix/components/engines/servicemix-cxf-se/trunk/src/main/resources/META-INF/spring/servicemix-cxf-se.xml
(original)
+++ servicemix/components/engines/servicemix-cxf-se/trunk/src/main/resources/META-INF/spring/servicemix-cxf-se.xml
Thu Jul 24 15:14:21 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,7 +28,9 @@
   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">
 
     <import resource="classpath:META-INF/cxf/cxf.xml" />
     <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
@@ -36,6 +39,17 @@
 
     <bean id="servicemix-cxf-se" class="org.apache.servicemix.cxfse.CxfSeComponent">
         <property name="bus" ref="cxf" />
+        <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">
@@ -55,4 +69,12 @@
         </osgi:service-properties>
     </osgi:service>
 
+    <osgix:property-placeholder persistent-id="servicemix-cxf-se">
+        <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