Hi folks,
I just played a bit with the OSGi update mechanism and have a question
about the object references after the update process.
I've updated one of my OSGi bundles and could see, that after calling
the "refresh" command not only the updated bundle has been restarted
but also all other bundles, that had object references to classes of
this bundle. That means that the internal states of all objects (not
only the one belonging to the updated bundle) have been reset. Could
you please comment this.
A second question: what if my application is in the middle of a long
running method/operation and the refresh command will be called? What
will happen to the long running operation and the corresponding
object? Will the update command wait till the method will finish or do
I have to expect/deal with unexpected behavior or do I need to create
BundleListener and delay the reset till my methods are finished?
Regards,
Eugen
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev