Hello All, I have trying to stop a bundle from within itself by invoking stop method as following in its Activator's start method: bundleContext.getBundle().stop();
But post this statement is executed, when i check its state via "lb" command on felix shell, its state is shown as Active. Then when i try to stop it via stop <bundleid> command, an exception is thrown that *org.osgi.framework.BundleException: Stopping a starting or stopping bundle is currently not supported.*And then its state is shown as *stopping* Please someone tell how i can achieve this.. Regards Siddharth -- View this message in context: http://apache-felix.18485.x6.nabble.com/how-can-a-bundle-stop-itself-programmatically-tp5018885.html Sent from the Apache Felix - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

