2 Replies Latest reply on Oct 26, 2011 2:15 PM by bosschaert

    Unbind called before bind for DS service during update.

    gsarno

      Hello,

       

      looks like the unbind method is called after bind during update. If I am not wrong OSGI requires unbind to be called after bind on update.

      Is this a bug or am I doing something wrong ?

       

      Version of Jboss is 7.0.2 and the DS descriptor for the service is:

       

       

      <?xml version="1.0" encoding="UTF-8"?>

      <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="osgi.example.service.broker">

         <implementation class="osgi.example.service.broker.DictionaryServiceImpl"/>

         <service>

            <provide interface="osgi.example.service.broker.interf.DictionaryService"/>

         </service>

         <reference bind="setDictionary" cardinality="1..n" interface="osgi.example.service.Dictionary" name="Dictionary" policy="dynamic" unbind="unsetDictionary"/>

      </scr:component>

       

       

      I tried different cardinality but still the same behavior.

       

      Can anybody help ?