<reference-listener> is the prefered way to do this with Blueprint! Using ServiceTracker doesn't fit with dependency injection at all.
There are examples in the unit tests, or in the Blueprint spec. You could also write an example for the Aries documentation! http://aries.apache.org/modules/blueprint.html For a sample XML, you could also see: http://fusesource.com/docs/esb/4.2/deploy_osgi/DeploySimple-Blueprint-Importing.html Tim Ward ------------------- Apache Aries PMC member & Enterprise OSGi advocate Enterprise OSGi in Action (http://www.manning.com/cummins) ------------------- Date: Thu, 1 Nov 2012 19:45:52 +0700 Subject: Re: Blueprint Services remove notification From: [email protected] To: [email protected] 1. use <reference-listener>2. catch Exception during method call on the service ;-) On Thu, Nov 1, 2012 at 7:39 PM, Christian Eugster <[email protected]> wrote: Is this the only way? Am 01.11.12 13:36, schrieb Hendy Irawan: Use ServiceTracker : http://www.osgi.org/javadoc/r4v43/residential/org/osgi/util/tracker/ServiceTracker.html Hendy On Thu, Nov 1, 2012 at 7:35 PM, Christian Eugster <[email protected]> wrote: Hi, I use Aries Blueprint 1.0.0 and have a question I found nowhere an answer: How can consumers of blueprint services be notificated about the removing of a service? Thanks! -- Hendy Irawan - on Twitter - on LinkedIn Web Developer | Bippo Indonesia | Akselerator Bisnis | Bandung -- Hendy Irawan - on Twitter - on LinkedIn Web Developer | Bippo Indonesia | Akselerator Bisnis | Bandung
