You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by sam lee <sk...@gmail.com> on 2010/12/01 18:01:08 UTC

Download a bundle from felix?

Hey,

What's a good way of downloading a bundle from felix?

This is what I'm trying to do:
- get symbolicName from user
- find bundle number   (GET /system/console/bundles/.json  and find matching
symbolicName and get id)
- find the bundle under launchpad/felix/bundle<bundle
number>/version.0.0/bundle.jar

Is there a better way of downloading (or getting) a bundle from felix?

Thanks.
Sam

Re: Download a bundle from felix?

Posted by Guo Du <mr...@duguo.org>.
On Wed, Dec 1, 2010 at 5:01 PM, sam lee <sk...@gmail.com> wrote:
> - find the bundle under launchpad/felix/bundle<bundle
> number>/version.0.0/bundle.jar
This won't work if bundle installed with "reference:" prefix.

You may try Bundle.getLocation()[1], then parse the location.

-Guo
[1] http://www.osgi.org/javadoc/r4v42/org/osgi/framework/Bundle.html#getLocation%28%29

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Download a bundle from felix?

Posted by Felix Meschberger <fm...@gmail.com>.
Hi,

Am Mittwoch, den 01.12.2010, 12:01 -0500 schrieb sam lee: 
> Hey,
> 
> What's a good way of downloading a bundle from felix?
> 
> This is what I'm trying to do:
> - get symbolicName from user
> - find bundle number   (GET /system/console/bundles/.json  and find matching
> symbolicName and get id)
> - find the bundle under launchpad/felix/bundle<bundle
> number>/version.0.0/bundle.jar
> 
> Is there a better way of downloading (or getting) a bundle from felix?
> 
> Thanks.
> Sam

Short answer is: There is no way to get the actual bundle class data
from an OSGi framework using standard OSGi API.

What exactly are you trying to do ? Why do you need to download the
bundles ?

Regards
Felix


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org