If the ServiceTrackerCustomizer (STC) or the equivalent methods on ServiceTracker (ST) gets the service, it must also unget the service. Balance.
So I would say it is bad form to not call ungetService on remove if getService was called on add. -- BJ Hargrave Senior Technical Staff Member, IBM OSGi Fellow and CTO of the OSGi Alliance [email protected] office: +1 386 848 1781 mobile: +1 386 848 3788 From: Raymond Auge <[email protected]> To: OSGi Developer Mail List <[email protected]> Date: 2014/08/26 17:13 Subject: [osgi-dev] calling bundleContext.ungetService() Sent by: [email protected] Hey all, I'd like some help to settle an internal debate. Is it bad form to NOT call bundleContext.ungetService() from a service tracker? -- Raymond Augé (@rotty3000) Senior Software Architect Liferay, Inc. (@Liferay) _______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
