karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Freeman Fang <freeman.f...@gmail.com>
Subject Re: svn commit: r1298755 - in /karaf/trunk/assemblies/features: framework/src/main/feature/feature.xml standard/src/main/feature/feature.xml
Date Fri, 09 Mar 2012 09:58:36 GMT
Hi JB,

IIRC, just hold the stream handlers reference in blueprint should be  
enough to guarantee the start sequence, even needn't inject it into  
the FeatuesServiceImpl.

Regards
Freeman
On 2012-3-9, at 下午5:37, Jean-Baptiste Onofré wrote:

> I reference the stream handlers in the blueprint and inject into the  
> FeatuesServiceImpl.
>
> I'm testing it right now.
>
> Regards
> JB
>
> On 03/09/2012 10:22 AM, Jean-Baptiste Onofré wrote:
>> Hi Freeman,
>>
>> let me take a look.
>>
>> Thanks for the update.
>>
>> Regards
>> JB
>>
>> On 03/09/2012 10:05 AM, Freeman Fang wrote:
>>> Hi JB,
>>>
>>> As you already move the deployer bundles into startup.properties,  
>>> how
>>> about also add
>>> <reference id="blueprintUrlHandler"
>>> interface="org.osgi.service.url.URLStreamHandlerService"
>>> filter="(url.handler.protocol=blueprint)" />
>>> <reference id="springUrlHandler"
>>> interface="org.osgi.service.url.URLStreamHandlerService"
>>> filter="(url.handler.protocol=spring)" />
>>> into features.core OSGi configuration
>>> features/core/src/main/resources/OSGI-INF/blueprint/gshell- 
>>> features.xml
>>> as this is more reliable than the bundle start level thing.
>>>
>>> Regards
>>> Freeman
>>> On 2012-3-9, at 下午4:51, jbonofre@apache.org wrote:
>>>
>>>> Author: jbonofre
>>>> Date: Fri Mar 9 08:51:55 2012
>>>> New Revision: 1298755
>>>>
>>>> URL: http://svn.apache.org/viewvc?rev=1298755&view=rev
>>>> Log:
>>>> [KARAF-1245] Add Spring and Blueprint deployers in the
>>>> startup.properties and make them started before features core  
>>>> bundle
>>>>
>>>> Modified:
>>>> karaf/trunk/assemblies/features/framework/src/main/feature/ 
>>>> feature.xml
>>>> karaf/trunk/assemblies/features/standard/src/main/feature/ 
>>>> feature.xml
>>>>
>>>> Modified:
>>>> karaf/trunk/assemblies/features/framework/src/main/feature/ 
>>>> feature.xml
>>>> URL:
>>>> http://svn.apache.org/viewvc/karaf/trunk/assemblies/features/framework/src/main/feature/feature.xml?rev=1298755&r1=1298754&r2=1298755&view=diff
>>>>
>>>>
>>>> = 
>>>> = 
>>>> = 
>>>> = 
>>>> = 
>>>> = 
>>>> = 
>>>> = 
>>>> = 
>>>> = 
>>>> = 
>>>> ===================================================================
>>>>
>>>>
>>>> ---
>>>> karaf/trunk/assemblies/features/framework/src/main/feature/ 
>>>> feature.xml
>>>> (original)
>>>> +++
>>>> karaf/trunk/assemblies/features/framework/src/main/feature/ 
>>>> feature.xml
>>>> Fri Mar 9 08:51:55 2012
>>>> @@ -41,6 +41,8 @@
>>>> <bundle start="true"
>>>> start-level="20">mvn:org.apache.aries.blueprint/ 
>>>> org.apache.aries.blueprint.cm/${aries.blueprint.cm.version}</ 
>>>> bundle>
>>>>
>>>>
>>>> <bundle start="true"
>>>> start-level="20">mvn:org.apache.aries.blueprint/ 
>>>> org.apache.aries.blueprint.core.compatibility/$ 
>>>> {aries.blueprint.core.compatibility.version}</bundle>
>>>>
>>>>
>>>> <bundle start="true"
>>>> start-level="20">mvn:org.apache.aries.blueprint/ 
>>>> org.apache.aries.blueprint.core/${aries.blueprint.core.version}</ 
>>>> bundle>
>>>>
>>>>
>>>> + <bundle start="true"
>>>> start-level="24">mvn:org.apache.karaf.deployer/ 
>>>> org.apache.karaf.deployer.spring/${project.version}</bundle>
>>>>
>>>>
>>>> + <bundle start="true"
>>>> start-level="24">mvn:org.apache.karaf.deployer/ 
>>>> org.apache.karaf.deployer.blueprint/${project.version}</bundle>
>>>>
>>>>
>>>> <bundle start="true"
>>>> start-level="25">mvn:org.apache.karaf.region/ 
>>>> org.apache.karaf.region.core/${project.version}</bundle>
>>>>
>>>>
>>>> <bundle start="true"
>>>> start-level="25">mvn:org.apache.karaf.features/ 
>>>> org.apache.karaf.features.core/${project.version}</bundle>
>>>>
>>>>
>>>> </feature>
>>>>
>>>> Modified:
>>>> karaf/trunk/assemblies/features/standard/src/main/feature/ 
>>>> feature.xml
>>>> URL:
>>>> http://svn.apache.org/viewvc/karaf/trunk/assemblies/features/standard/src/main/feature/feature.xml?rev=1298755&r1=1298754&r2=1298755&view=diff
>>>>
>>>>
>>>> = 
>>>> = 
>>>> = 
>>>> = 
>>>> = 
>>>> = 
>>>> = 
>>>> = 
>>>> = 
>>>> = 
>>>> = 
>>>> ===================================================================
>>>>
>>>>
>>>> ---
>>>> karaf/trunk/assemblies/features/standard/src/main/feature/ 
>>>> feature.xml
>>>> (original)
>>>> +++
>>>> karaf/trunk/assemblies/features/standard/src/main/feature/ 
>>>> feature.xml
>>>> Fri Mar 9 08:51:55 2012
>>>> @@ -104,8 +104,6 @@
>>>> </feature>
>>>>
>>>> <feature name="deployers" description="Provide Karaf deployer"
>>>> version="${project.version}" resolver="(obr)">
>>>> - <bundle
>>>> start-level="30">mvn:org.apache.karaf.deployer/ 
>>>> org.apache.karaf.deployer.blueprint/${project.version}</bundle>
>>>>
>>>>
>>>> - <bundle
>>>> start-level="30">mvn:org.apache.karaf.deployer/ 
>>>> org.apache.karaf.deployer.features/${project.version}</bundle>
>>>>
>>>>
>>>> <bundle
>>>> start-level="30">mvn:org.apache.karaf.deployer/ 
>>>> org.apache.karaf.deployer.wrap/${project.version}</bundle>
>>>>
>>>>
>>>> </feature>
>>>>
>>>>
>>>>
>>>
>>> ---------------------------------------------
>>> Freeman Fang
>>>
>>> FuseSource
>>> Email:ffang@fusesource.com
>>> Web: fusesource.com
>>> Twitter: freemanfang
>>> Blog: http://freemanfang.blogspot.com
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>
> -- 
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com

---------------------------------------------
Freeman Fang

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com










Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message