Dear Sir,
I'm trying to programmatically re-start a "specific bundle" when it is
stopped.
I implemented a bundle listener, and in its "bundleChanged()" method I
checked the proper event and when I discovered a "BundleEvent.STOPPED"
type of event being fired for my "specific bundle" then I invoked the
"start()" method of my "specific bundle", in order to restarting it.
The problem is that when invoking such "start()" method I get an error
message:
"
org.osgi.framework.BundleException: State change in progress for bundle
"file:/C:/LocalRepository/equinox/Ese1/criticalBundle.jar" by thread "OSGi
Console".
..
"
The result is that my "specific bundle" is not re-started.
Please, can you advise me if this is the proper way for re-starting a
bundle when it is stopped or if I should follow a different method?