You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@aries.apache.org by PSI-Systems <ps...@gmail.com> on 2011/03/14 06:46:52 UTC

Fragments

How can I make aries recognize configs
(META-INF/blueprint/config_in_fragment.xml) in fragments. They seem to
not get recognized when the bundle host of the fragment starts.

thx

Re: Fragments

Posted by Alasdair Nottingham <no...@apache.org>.
Hi,

It isn't clear to me exactly what you are trying, so I'll make some
assumptions and go from there.

If you have a fragment that puts files in OSGi-INF/blueprint (and the
host does not define a Bundle-Blueprint header) then it should be
picked up provided that the fragment was attached when the host bundle
was started. I do not see a test for this in our backlog, but the CT
which has been run does test for this and I believe we pass that test.

If you have a fragment that identifies a blueprint file using the
Bundle-Blueprint header then it is not processed section 121.3.4 of
the blueprint specification says: "A Bundle-Blueprint manifest header
specified in a fragment is ignored by the Blueprint Container."

If your host bundle had Bundle-Blueprint: META-INF/blueprint/*.xml (to
quote from Valentin's example) then it will search both the bundle and
fragment for files.



Alasdair

On 14 March 2011 19:10, PSI-Systems <ps...@gmail.com> wrote:
>> as I understand the spec (121.3.4) Blueprint should search in OSGI-INF/blueprint for blueprint xml files (in both the host and fragments). If you want it to locate things in META-INF/blueprint you should be able to the Bundle-Blueprint manifest header like:
>>
>>   Bundle-Blueprint: META-INF/blueprint/*.xml
>>
>> Hope this helps,
> I meant OSGI-INF/blueprint, sry.
> But only explicitly setting the header in the fragment or the host
> bundle worked.
>
> Sandro
>



-- 
Alasdair Nottingham
not@apache.org

Re: Fragments

Posted by PSI-Systems <ps...@gmail.com>.
> as I understand the spec (121.3.4) Blueprint should search in OSGI-INF/blueprint for blueprint xml files (in both the host and fragments). If you want it to locate things in META-INF/blueprint you should be able to the Bundle-Blueprint manifest header like:
> 
>   Bundle-Blueprint: META-INF/blueprint/*.xml
> 
> Hope this helps,
I meant OSGI-INF/blueprint, sry.
But only explicitly setting the header in the fragment or the host
bundle worked.

Sandro

Re: Fragments

Posted by Valentin Mahrwald <vm...@googlemail.com>.
Hi,

as I understand the spec (121.3.4) Blueprint should search in OSGI-INF/blueprint for blueprint xml files (in both the host and fragments). If you want it to locate things in META-INF/blueprint you should be able to the Bundle-Blueprint manifest header like:

  Bundle-Blueprint: META-INF/blueprint/*.xml

Hope this helps,

Valentin

On 14 Mar 2011, at 05:46, PSI-Systems wrote:

> How can I make aries recognize configs
> (META-INF/blueprint/config_in_fragment.xml) in fragments. They seem to
> not get recognized when the bundle host of the fragment starts.
> 
> thx