Hi Christian,

Thanks for the insights. 

The blueprint.xml is as follows:

<blueprint xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
           xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
           xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd";>          
  <bean id="aSImpl" class="test.ASImpl">
        <argument ref="wServ"/>
        <argument ref="tServ"/>
  </bean>           
  <bean id="activator" class="test.Activator">
  </bean>
  <bean id="mypojo" class="test.MyPojo">
  </bean>
  <reference id="wServ" activation="eager" availability="mandatory"
           interface="test.WServ">
  </reference>
  <reference id="tServ" availability="mandatory" activation="eager" 
                        interface="test.TServ">    
  </reference>
  <service id="aService" 
           interface="test.AServ"
           ref="aSImpl">        
       <registration-listener ref="activator" registration-method="register"
unregistration-method="unregister"/>
  </service>                                                                    
</blueprint>

NOTE: as such mypojo is not used in the above config. Now, if I switch the
ref in <registration-listener> from "activator" to "mypojo" there is still
no call back.
NOTE 2: ASImpl implements AServ interface, the service interface

MyPojo is a simple pojo that provides implementation for two methods
register and unregister:

        public void register(AServ aServ, Map props) {
                System.out.println("register called");
        }

        public void unregister(AServ aServ, Map props) {
                System.out.println("unregister called");
        }

Thanks for any insights.



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-3-0-3-Blueprint-Service-Registration-Listener-related-question-tp4039368p4039386.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Reply via email to