Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » will equinox update bundle native code at restart?
will equinox update bundle native code at restart? [message #87319] Wed, 02 May 2007 18:25 Go to next message
shean chang is currently offline shean changFriend
Messages: 11
Registered: July 2009
Junior Member
My system is using equinox config.ini to configure bundles and my question
is when the system got re-started the previous started bundle via URL has
native code (Bundle-NativeCode: in the manifest.mf) and the native code has
been updated so my question is what the equinox will do with the updated
native code? I notice the native code has been copied into the
org.eclipse.osgi/bundles directory and restart with the new bundle did not
cause the new native code being copied into the org.eclipse.osgi/bundles
directory again.
Re: will equinox update bundle native code at restart? [message #87558 is a reply to message #87319] Thu, 03 May 2007 18:01 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
What protocol is used for you install URLs? Are you using plain "file:"
URLs or "reference:file:" URLs? If you are using plain "file:" URLs
then the content of the bundle is copied into the framework cache and
the framework never reads the original location of the content again.
If you are using "reference:file:" URLs then the framework will use the
content of the bundle as-is from the file location. But we assume the
content will not change out from underneath us. You must use OSGi apis
to install/update the new content.

How did you update the native code? Is the native code in a jar'ed
bundle or a directory bundle? If the bundle is jared and you simply
replaced the jar file on the file system then we will not recognize that
a new library is available in the jar and will not extract the new content.

The framework assumes that bundles will be updated using OSGi APIs so
that the framework can be informed about the updated bundle.

Tom
Re: will equinox update bundle native code at restart? [message #87571 is a reply to message #87558] Thu, 03 May 2007 18:53 Go to previous message
shean chang is currently offline shean changFriend
Messages: 11
Registered: July 2009
Junior Member
We are using "reference:file:" URLs.

The native code is in a jar bundle and how can I make Equinox to perform
native code update when it is in a jar file?

"Tom Watson" <tjwatson@us.ibm.com> wrote in message
news:f1d829$ieg$1@build.eclipse.org...
> What protocol is used for you install URLs? Are you using plain "file:"
> URLs or "reference:file:" URLs? If you are using plain "file:" URLs
> then the content of the bundle is copied into the framework cache and
> the framework never reads the original location of the content again.
> If you are using "reference:file:" URLs then the framework will use the
> content of the bundle as-is from the file location. But we assume the
> content will not change out from underneath us. You must use OSGi apis
> to install/update the new content.
>
> How did you update the native code? Is the native code in a jar'ed
> bundle or a directory bundle? If the bundle is jared and you simply
> replaced the jar file on the file system then we will not recognize that
> a new library is available in the jar and will not extract the new
content.
>
> The framework assumes that bundles will be updated using OSGi APIs so
> that the framework can be informed about the updated bundle.
>
> Tom
Previous Topic:Stand alone OSGI server
Next Topic:Equinox Console Commands Syntaxes?
Goto Forum:
  


Current Time: Sat Nov 09 05:35:07 GMT 2024

Powered by FUDForum. Page generated in 0.23431 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top