[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [equinox-dev] native libraries loading issues
- From: "Richard S. Hall" <heavy@xxxxxxxxxxxxxx>
- Date: Sun, 10 Sep 2006 20:52:41 -0400
- Delivered-to: firstname.lastname@example.org
- User-agent: Thunderbird 126.96.36.199 (X11/20060808)
Grzegorz Glowaty wrote:
PackageAdmin specification says that it will refresh all the bundles
that are either updated or depending on updated bundles. It is enough
to be included in the graph build by PackageAdmin for a bundle to be
refreshed. This must cause assignement of a new classloader to a
bundle. If such a bundle (not updated directly, but refreshed because
one of the bundles it relied on was updated) contains a native library
it will result in JVM error stating that the library was loaded by
another classloader. Is there any way of preventing this?
Oscar (objectweb osgi impl) does a nice trick of renaming the bundle
directory upon refresh (not only upon update). This causes the library
to change disk location, thus to be able to be loaded by another
classloader. Is there something similar built in into equinox?
Currently we are observing the mentioned error which worries me that
it is not. If it is not, maybe it would be worth adding?
This is carried over into Felix too.