servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r679572 - in /servicemix/components/bindings/servicemix-mail/trunk: ./ pom.xml src/main/resources/META-INF/spring/servicemix-mail.xml
Date Thu, 24 Jul 2008 22:12:45 GMT
Author: gnodet
Date: Thu Jul 24 15:12:45 2008
New Revision: 679572

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

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

Propchange: servicemix/components/bindings/servicemix-mail/trunk/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jul 24 15:12:45 2008
@@ -3,3 +3,5 @@
 .settings
 .project
 eclipse-classes
+*.iml
+

Modified: servicemix/components/bindings/servicemix-mail/trunk/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-mail/trunk/pom.xml?rev=679572&r1=679571&r2=679572&view=diff
==============================================================================
--- servicemix/components/bindings/servicemix-mail/trunk/pom.xml (original)
+++ servicemix/components/bindings/servicemix-mail/trunk/pom.xml Thu Jul 24 15:12:45 2008
@@ -44,13 +44,15 @@
     <servicemix-shared-version>4.0-SNAPSHOT</servicemix-shared-version>
 
     <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,
         *
     </servicemix.osgi.import>
     <servicemix.osgi.export>
-        org.apache.servicemix*;version=${project.version},
+        org.apache.servicemix.mail*;version=${project.version},
         META-INF.services.org.apache.xbean.spring.http.servicemix.apache.org.mail
     </servicemix.osgi.export>
   </properties>

Modified: servicemix/components/bindings/servicemix-mail/trunk/src/main/resources/META-INF/spring/servicemix-mail.xml
URL: http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-mail/trunk/src/main/resources/META-INF/spring/servicemix-mail.xml?rev=679572&r1=679571&r2=679572&view=diff
==============================================================================
--- servicemix/components/bindings/servicemix-mail/trunk/src/main/resources/META-INF/spring/servicemix-mail.xml
(original)
+++ servicemix/components/bindings/servicemix-mail/trunk/src/main/resources/META-INF/spring/servicemix-mail.xml
Thu Jul 24 15:12:45 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-mail" class="org.apache.servicemix.mail.MailComponent">
+        <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-mail">
+        <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