[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] my confusion for unregistering services in bundle.stop

It is up to you. If the framework removes them, they will be removed in a random order. If you have several listeners and registered services which should be shutdown in some orderly manner, you will need to shut them down yourself.


BJ Hargrave
Senior Technical Staff Member, IBM
OSGi Fellow and CTO of the
OSGi Alliance

office: +1 386 848 1781
mobile: +1 386 848 3788

From: Meng Xin Zhu <zhumx@xxxxxxxxxx>
To: equinox-dev@xxxxxxxxxxx
Cc: Xiang Yu Hao <haoxy@xxxxxxxxxx>
Date: 2008/03/31 06:17 AM
Subject: [equinox-dev] my confusion for unregistering services in bundle.stop

I find below description in the OSGi R4 specification section '4.3.6 Activation':

stop(BundleContext) â This method must undo all the actions of the BundleActivator.start(BundleContext) method. However, it is unnecessary to unregister services or Framework listeners, because they must be cleaned up by the Framework anyway.

Recently I read a post introducing
development best practices(it's ibm internal site), it says: