Hi,
I implemented a Service and leveraged declarative registration using
Blueprint (via blueprint.xml).
...
<service id="aService"
interface="AService"
ref="aServiceImpl">
<registration-listener ref="activator" registration-method="register"
unregistration-method="unregister"/>
</service>
...
The service deploys fine and if I do service:list in the Karaf command
prompt I see the service successfully installed and started. However, the
activator's registration and unregistration callback methods are not getting
invoked.
Clearly, I am not doing something right and would appreciate any insights.
public class Activator implements BundleActivator {
// ... start and stop methods removed for brevity ...
public void register(final AService aServ, final Map properties) {
System.out.println("Register invoked...");
}
public void unregister(final AService aServ, final Map properties) {
System.out.println("Unregister called...");
}
}
There isnt anything in the log to indicate any attempts to call register or
unregister, i.e., no failures on trying to call these methods. It appears
that no callback is not happening
Thanks for any help.
--
View this message in context:
http://karaf.922171.n3.nabble.com/Karaf-3-0-3-Blueprint-Service-Registration-Listener-related-question-tp4039368.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.