Sure you can. You need to use the installBundle(String, InputStream) method though. You must supply the InputStream to the local temp file.
BJ Hargrave Senior Technical Staff Member, IBM OSGi Fellow and CTO of the OSGi Alliance [EMAIL PROTECTED] office: +1 386 848 1781 mobile: +1 386 848 3788 "Steven E. Harris" <[EMAIL PROTECTED]> 2007-04-11 16:15 Please respond to felix-dev@incubator.apache.org To felix-dev@incubator.apache.org cc Subject Re: newbie: installing and starting new bundles from code BJ Hargrave <[EMAIL PROTECTED]> 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. -- Steven E. Harris