You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by Alin Dreghiciu <ad...@gmail.com> on 2008/02/06 09:07:58 UTC

Status and future of bundle repository

Hy guys,

Can you please give me some information about the status of rfc-122
and it's Felix implementation org.apache.felix.bundlerepository?
The "problems" I see with the released 1.0.0 is that it uses
System.out (shouldn't wise logging), discover resources fails with a
NPE on an invalid filter syntax and is a kind of slow on parsing the
repository xml even under not such a big repository like the one from
osgi alliance (how this will scale on large repository or federation
of repositories). I can raise jura issues and maybe some patches but
it will be interesting to know first what the future looks like for
OBR.

And related, is there any other repository then the one from osgi
alliance and the oscar one? As I see now the one from oscar does not
have to many bundles and the one from osgi alliance looks like
outdated and has corrupted data (invalid syntax)

Kind regards,
Alin Dreghiciu

Re: Status and future of bundle repository

Posted by Alin Dreghiciu <ad...@gmail.com>.
Correction:

> ... is a kind of slow on parsing the
> repository xml even under not such a big repository like the one from
> osgi alliance (how this will scale on large repository or federation
> of repositories).

If I use a local system file copy repository.xml instead of accessing
directly the one from osgi alliance parsing is much faster. Still
takes some time but definitively faster then before. So, sorry for not
checking this before.

Alin

Re: Status and future of bundle repository

Posted by Stefano Lenzi <ki...@interfree.it>.
Richard S. Hall wrote:
> Alin Dreghiciu wrote:
>> Can you please give me some information about the status of rfc-122
>> and it's Felix implementation org.apache.felix.bundlerepository?
>>   
> 
> I am not exactly sure about the status of the RFC...
> 

IMHO, I think that the RFC should provide a specification for "soft" 
metadata (metadata that are not used for resolving dependencies among 
bundles) like: documentation url, source url, license and etc.

> 
>> And related, is there any other repository then the one from osgi
>> alliance and the oscar one? As I see now the one from oscar does not
>> have to many bundles and the one from osgi alliance looks like
>> outdated and has corrupted data (invalid syntax)
>>   
> 
> The Oscar one should not be used for Felix. Most bundles in there are 
> simple didactic examples and even the ones that aren't are typically 
> packaged for Oscar, which is not as strict as Felix. (There might be 
> some exceptions, but overall this is true.)
> 
> We really need to set of a Felix OBR repo, now that we have so many 
> subprojects released.

Can we add a proxy section to the OBR metadata in order to release the 
repository.xml as we are doing for all thre project.  So we can exploit 
the replicaiton service provided by the Apache and download the bundles 
as long we release them.

WDYT?

> 
> -> richard
> 
>> Kind regards,
>> Alin Dreghiciu
>>   
> 
> 


Re: Status and future of bundle repository

Posted by "Richard S. Hall" <he...@ungoverned.org>.
Alin Dreghiciu wrote:
> Can you please give me some information about the status of rfc-122
> and it's Felix implementation org.apache.felix.bundlerepository?
>   

I am not exactly sure about the status of the RFC...

> The "problems" I see with the released 1.0.0 is that it uses
> System.out (shouldn't wise logging), discover resources fails with a
> NPE on an invalid filter syntax and is a kind of slow on parsing the
> repository xml even under not such a big repository like the one from
> osgi alliance (how this will scale on large repository or federation
> of repositories). I can raise jura issues and maybe some patches but
> it will be interesting to know first what the future looks like for
> OBR.
>   

It sounds like we need JIRA issues on these to fix them...especially the 
NPE. Regarding the slowness, I think it may have something to do 
specifically with SourceForge access, but scalability will ultimately be 
an issue if the XML files become very large. Probably the only way to 
try to alleviate this is to cache locally and only update the caches 
once a day or something like that. Right now it is quite simple and just 
downloads the URL each time it is started.

> And related, is there any other repository then the one from osgi
> alliance and the oscar one? As I see now the one from oscar does not
> have to many bundles and the one from osgi alliance looks like
> outdated and has corrupted data (invalid syntax)
>   

The Oscar one should not be used for Felix. Most bundles in there are 
simple didactic examples and even the ones that aren't are typically 
packaged for Oscar, which is not as strict as Felix. (There might be 
some exceptions, but overall this is true.)

We really need to set of a Felix OBR repo, now that we have so many 
subprojects released.

-> richard

> Kind regards,
> Alin Dreghiciu
>   

Re: Status and future of bundle repository

Posted by Stuart McCulloch <st...@jayway.net>.
On 06/02/2008, Alin Dreghiciu <ad...@gmail.com> wrote:
>
> Hy guys,
>
> Can you please give me some information about the status of rfc-122
> and it's Felix implementation org.apache.felix.bundlerepository?
> The "problems" I see with the released 1.0.0 is that it uses
> System.out (shouldn't wise logging), discover resources fails with a
> NPE on an invalid filter syntax and is a kind of slow on parsing the
> repository xml even under not such a big repository like the one from
> osgi alliance (how this will scale on large repository or federation
> of repositories). I can raise jura issues and maybe some patches but
> it will be interesting to know first what the future looks like for
> OBR.


yes - please raise JIRA issues for these points, as it helps with tracking,
etc.
having issues logged in JIRA can be a good motivator for getting things
fixed :)

And related, is there any other repository then the one from osgi
> alliance and the oscar one? As I see now the one from oscar does not
> have to many bundles and the one from osgi alliance looks like
> outdated and has corrupted data (invalid syntax)


afaik, the oscar one is mostly there as an example - there has been talk
of setting up an OBR for Felix, which I think would be useful and is easier
now we have the maven-obr-plugin (we could also have an OBR at OPS4J)

the Eclipse folks are also looking at OBR and how it would fit with the p2
project and other repositories / plug-in update sites - so it is becoming
more popular.

Kind regards,
> Alin Dreghiciu
>

-- 
Cheers, Stuart