You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by jb...@apache.org on 2010/07/26 16:07:30 UTC
svn commit: r979287 - in
/servicemix/components/engines/servicemix-jsr181/trunk: pom.xml
src/main/resources/OSGI-INF/ src/main/resources/OSGI-INF/blueprint/
src/main/resources/OSGI-INF/blueprint/servicemix-jsr181.xml
Author: jbonofre
Date: Mon Jul 26 14:07:29 2010
New Revision: 979287
URL: http://svn.apache.org/viewvc?rev=979287&view=rev
Log:
[SMXCOMP-708] servicemix-jsr181 is not available as an OSGi bundle.
Added:
servicemix/components/engines/servicemix-jsr181/trunk/src/main/resources/OSGI-INF/
servicemix/components/engines/servicemix-jsr181/trunk/src/main/resources/OSGI-INF/blueprint/
servicemix/components/engines/servicemix-jsr181/trunk/src/main/resources/OSGI-INF/blueprint/servicemix-jsr181.xml (with props)
Modified:
servicemix/components/engines/servicemix-jsr181/trunk/pom.xml
Modified: servicemix/components/engines/servicemix-jsr181/trunk/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/components/engines/servicemix-jsr181/trunk/pom.xml?rev=979287&r1=979286&r2=979287&view=diff
==============================================================================
--- servicemix/components/engines/servicemix-jsr181/trunk/pom.xml (original)
+++ servicemix/components/engines/servicemix-jsr181/trunk/pom.xml Mon Jul 26 14:07:29 2010
@@ -43,13 +43,17 @@
<xbean-version>3.4.3</xbean-version>
<servicemix.osgi.import>
+ !org.apache.servicemix.jsr181*,
+ !META-INF.services.org.apache.xbean.spring.http.servicemix.apache.org.jsr181,
org.apache.servicemix.common,
org.apache.servicemix.common.osgi,
org.apache.servicemix.executors.impl,
- org.codehaus.xfire*,
- org.apache.servicemix.nmr.api.security,
+ org.apache.servicemix.jbi.container*;resolution:=optional,
+ org.apache.servicemix.jbi.framework*;resolution:=optional,
org.apache.xbean.spring.context.v2,
org.springframework.beans.factory.xml,
+ org.codehaus.xfire*,
+ javax.xml.bind*,
sun.misc;resolution:=optional,
*
</servicemix.osgi.import>
Added: servicemix/components/engines/servicemix-jsr181/trunk/src/main/resources/OSGI-INF/blueprint/servicemix-jsr181.xml
URL: http://svn.apache.org/viewvc/servicemix/components/engines/servicemix-jsr181/trunk/src/main/resources/OSGI-INF/blueprint/servicemix-jsr181.xml?rev=979287&view=auto
==============================================================================
--- servicemix/components/engines/servicemix-jsr181/trunk/src/main/resources/OSGI-INF/blueprint/servicemix-jsr181.xml (added)
+++ servicemix/components/engines/servicemix-jsr181/trunk/src/main/resources/OSGI-INF/blueprint/servicemix-jsr181.xml Mon Jul 26 14:07:29 2010
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
+ xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
+ xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0">
+
+ <bean id="servicemix-jsr181" class="org.apache.servicemix.jsr181.Jsr181Component">
+ <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-jsr181" />
+ </bean>
+
+ <reference-list id="endpoints"
+ interface="org.apache.servicemix.common.osgi.EndpointWrapper"
+ availability="optional">
+ <reference-listener ref="endpoint-tracker" bind-method="register" unbind-method="unregister" />
+ </reference-list>
+
+ <service ref="servicemix-jsr181" interface="javax.jbi.component.Component">
+ <service-properties>
+ <entry key="NAME" value="servicemix-jsr181" />
+ <entry key="TYPE" value="service-engine" />
+ </service-properties>
+ </service>
+
+ <service interface="org.apache.aries.blueprint.NamespaceHandler">
+ <service-properties>
+ <entry key="osgi.service.blueprint.namespace" value="http://servicemix.apache.org/jsr181/1.0" />
+ </service-properties>
+ <bean class="org.apache.xbean.blueprint.context.impl.XBeanNamespaceHandler">
+ <argument value="http://servicemix.apache.org/jsr181/1.0" />
+ <argument value="servicemix-jsr181.xsd" />
+ <argument ref="blueprintBundle" />
+ <argument value="META-INF/services/org/apache/xbean/spring/http/servicemix.apache.org/jsr181/1.0" />
+ </bean>
+ </service>
+
+ <cm:property-placeholder persistent-id="org.apache.servicemix.components.jsr181">
+ <cm:default-properties>
+ <cm:property name="threadPoolCorePoolSize" value="8" />
+ <cm:property name="threadPoolMaximumPoolSize" value="32" />
+ <cm:property name="threadPoolQueueSize" value="256" />
+ </cm:default-properties>
+ </cm:property-placeholder>
+
+</blueprint>
\ No newline at end of file
Propchange: servicemix/components/engines/servicemix-jsr181/trunk/src/main/resources/OSGI-INF/blueprint/servicemix-jsr181.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain