felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall" <he...@ungoverned.org>
Subject Re: newbie: installing and starting new bundles from code
Date Wed, 11 Apr 2007 20:25:31 GMT
Richard S. Hall wrote:
> Steven E. Harris wrote:
>> BJ Hargrave <hargrave@us.ibm.com> writes:
>>> If location string is the same => returns the Bundle object of the
>>> installed bundle, otherwise throw BundleException.
>> Then in order to accommodate a design like I'm describing, one where
>> some agent tries to install downloaded bundles without knowing whether
>> they're already installed, I have to make sure that the location
>> string is stable among equivalent bundles. I can't, say, download the
>> bundle to a temporary file (with a randomly constructed name) and try
>> to install it from there. Is that correct?
>> I'll take the rest of my related questions to the osgi-dev list.
> You can give the bundle any arbitrary location you want and use 
> installBundle(String, InputStream)...this is what the OBR impl does, 
> since it doesn't want the location is actually meaningless.

That doesn't make sense..."since the location is actually meaningless"...

-> richard

> What you need is to check to see if the symbolic name + version is 
> already installed.
> -> richard

View raw message