On Mon, Mar 25, 2013 at 12:10 PM, Bruce Jackson <[email protected]> wrote:

> Hi All
>
> I have a couple of questions about fileinstall:
>
> 1. On the documentation page for file install, it says:
>
> It updates the bundle when you update the bundle file in the directory
>
> Can you tell me how this works? From what I can see, if I deploy a new
> version of a given bundle to the (e.g.) ./load directory, then I simply get
> 2 bundles running, the old version and the new one. It doesn't look like
> fileinstall checks the bundle manifest to determine if an existing version
> is running.
>

If the directory contains two bundles files then FileInstall installs both
bundles, unless:

a) Both bundles are the same BSN and version, OR
b) The bundle is marked as a singleton, meaning only one version is
permitted to be present.

If you want FileInstall to update the *same* bundle, then you should
replace the file with a new one that has the same filename.


> 2. Regarding, configuration files, again the docs say:
>
> File Install can do the same for configuration configuration files
>
> ...but I'm not clear what this means. Looking at the source, it seems like
> this is only applicable for ManagedService services. Is this correct? I was
> expecting that config properties placed in a .cfg file would be read as
> part of the bundle configuration that can be read by:
>
> bundleContext.getProperty("some.peoperty.here");
>

Your expectation is wrong. The configuration feature of FileInstall is
meant to work with the OSGi Configuration Admin service.

Regards
Neil


>
> Thanks
>
> Bruce
>
>
> This e-mail is only intended for the person(s) to whom it is addressed and
> may contain CONFIDENTIAL information. Any opinions or views are personal to
> the writer and do not represent those of INQ Mobile Limited, Hutchison
> Whampoa Limited or its group companies. If you are not the intended
> recipient, you are hereby notified that any use, retention, disclosure,
> copying, printing, forwarding or dissemination of this communication is
> strictly prohibited. If you have received this communication in error,
> please erase all copies of the message and its attachments and notify the
> sender immediately. INQ Mobile Limited is a company registered in the
> British Virgin Islands. www.inqmobile.com.
>
>

Reply via email to