You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Nicolas Roduit <ni...@mycable.ch> on 2012/02/06 20:04:51 UTC
How to handle same bundles from different locations?
Hi all,
I've made an application with the latest release of Apache Felix
framework and set the property "org.osgi.framework.storage.clean" to
"none". Bundles are not loaded correctly when a bundle come from an
different location of the one during the previous launch. Having
different URLs for the same bundle seems to be an issue if the cache is
not cleared.
I see in log: Bundle symbolic name and version are not unique
It is a client application deploy through Java Web Start form several
providers. So cleaning the cache at every launch is not a solution.
Is there any recommendations for having multiple repositories with
identical bundles?
Thanks,
Nicolas
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: How to handle same bundles from different locations?
Posted by "Richard S. Hall" <he...@ungoverned.org>.
On 2/6/12 14:04, Nicolas Roduit wrote:
> Hi all,
>
> I've made an application with the latest release of Apache Felix
> framework and set the property "org.osgi.framework.storage.clean" to
> "none". Bundles are not loaded correctly when a bundle come from an
> different location of the one during the previous launch. Having
> different URLs for the same bundle seems to be an issue if the cache
> is not cleared.
> I see in log: Bundle symbolic name and version are not unique
>
> It is a client application deploy through Java Web Start form several
> providers. So cleaning the cache at every launch is not a solution.
> Is there any recommendations for having multiple repositories with
> identical bundles?
Not sure I totally understand your desire. You cannot install the same
bundle more than once, even if the location URL changes (technically,
there is a way to do this in the R4.3 spec, it is not really
encouraged). If the bundle is already installed, then there isn't much
reason to install it again, is there?
As I said, I'm not clear what you want to do. The issue isn't whether or
not your repositories have identical bundles, it is whether or not you
want to blindly install bundles even if they are duplicates.
The simple thing to do is to do is check the bundle exception from an
install to determine if it is due to a duplicate, if so, then you are
fine since the bundle is already installed.
-> richard
>
> Thanks,
>
> Nicolas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org