Cross posting answer from KF list. /Christer
-- Christer Larsson Makewave, http://www.makewave.com > On Fri, Oct 29, 2010 at 03:54:15PM +0530, pavithra shankar wrote: >> Hi all, >> >> Suppose the bundle is not locally present and it is to be fetched from a >> remote server. >> 1. Does osgi specifications support the downloading and installing of a >> bundle >> over the network? > > Yes, if the location given to > BundleContext.installBundle(String location) > is an URL that the framework use to get an input stream from. > >> 2. if yes, during the course of such an installation, if the network >> connection >> is interrupted ,( and the bundle jar file is a huge one) is downloading from >> the point where it left off supported or will the whole jar have to be >> downloaded again from the beginning/reloaded? > > No, to do this you must download the bundle yourself to the local > file-system (use bc,.getDataFile(name) to get a File-object to write > to) and then (when the download is completed) call > bc.installBundle(String location, InputStream in) with an inputstream > reading from the local copy of the bundle. > > BR, > \GE > _______________________________________________ > Knopflerfish-devel mailing list > [email protected] > http://www.knopflerfish.org/mailman/listinfo/knopflerfish-devel
_______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
