servicemix-commits mailing list archives

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

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

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

Modified: servicemix/components/bindings/servicemix-jms/trunk/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-jms/trunk/pom.xml?rev=679569&r1=679568&r2=679569&view=diff
==============================================================================
--- servicemix/components/bindings/servicemix-jms/trunk/pom.xml (original)
+++ servicemix/components/bindings/servicemix-jms/trunk/pom.xml Thu Jul 24 15:11:48 2008
@@ -46,7 +46,9 @@
     <activemq-version>5.1.0</activemq-version>
 
     <servicemix.osgi.import>
+        org.apache.servicemix.common,
         org.apache.servicemix.common.osgi,
+        org.apache.servicemix.executors.impl,
         org.apache.woden*;resolution:=optional,
         org.apache.xbean.spring.context.v2,
         org.jencks*;resolution:=optional,
@@ -54,7 +56,7 @@
         *
     </servicemix.osgi.import>
     <servicemix.osgi.export>
-        org.apache.servicemix*;version=${project.version},
+        org.apache.servicemix.jms*;version=${project.version},
         META-INF.services.org.apache.xbean.spring.http.servicemix.apache.org.jms
     </servicemix.osgi.export>
   </properties>

Modified: servicemix/components/bindings/servicemix-jms/trunk/src/main/resources/META-INF/spring/servicemix-jms.xml
URL: http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-jms/trunk/src/main/resources/META-INF/spring/servicemix-jms.xml?rev=679569&r1=679568&r2=679569&view=diff
==============================================================================
--- servicemix/components/bindings/servicemix-jms/trunk/src/main/resources/META-INF/spring/servicemix-jms.xml
(original)
+++ servicemix/components/bindings/servicemix-jms/trunk/src/main/resources/META-INF/spring/servicemix-jms.xml
Thu Jul 24 15:11:48 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,15 +28,34 @@
   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-jms" class="org.apache.servicemix.jms.JmsComponent">
+        <property name="authenticationService" ref="authenticationService" />
+        <property name="keystoreManager" ref="keystoreManager" />
+        <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">
         <property name="component" ref="servicemix-jms" />
     </bean>
 
+    <osgi:reference id="authenticationService" interface="org.apache.servicemix.nmr.api.security.AuthenticationService"
/>
+
+    <osgi:reference id="keystoreManager" interface="org.apache.servicemix.kernel.jaas.config.KeystoreManager"
/>
+
     <osgi:list id="endpoints"
                interface="org.apache.servicemix.common.osgi.EndpointWrapper"
                cardinality="0..N">
@@ -49,4 +69,12 @@
         </osgi:service-properties>
     </osgi:service>
 
+    <osgix:property-placeholder persistent-id="servicemix-jms">
+        <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