Multiple event topics in OSGi Declarative Service component description



I'm sure it's really simple, but I fail to understand the required XML schema to make my component listen to multiple event topics in the OSGi framework.


I want to handle the following 2 events and at some point even more:



basm/event/IAM
basm/event/COV


I tried stuff like this



<properties name="event.topics">
<entry>basm/event/IAM</entry>
<entry>basm/event/COV</entry>
</properties>


or



<property name="event.topics" type="String" value="basm/event/IAM,basm/event/COV" />


or



<property name="event.topics" type="String" value="basm/event/IAM" />
<property name="event.topics" type="String" value="basm/event/COV" />


Unfortunately my OSGi book only ever uses one event topic and I surprisingly couldn't find anything on the net. I tried to go by the XML schema for DS component description but failed to understand it: http://ift.tt/1nZiL3k


No comments:

Post a Comment