You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@aries.apache.org by Jay Rajani <ja...@mobileinternet.co.in> on 2013/01/21 14:11:53 UTC

Need Help: Handling multiple versions of same service

Hi,

 

I am using Apache Aries on Karaf OSGi container. I have two different
version of a bundle installed at a time. I have exposed service using
<service> tag as following.

 

<service ref="greetService" interface="com.mii.greet.Greet"  />

 

On service consumer side, I refer to the service using reference tag.

 

<reference id="greetService" interface="com.mii.greet.Greet" />

 

But on consumer side, I always receive the service provider from the bundle
which exposes the service first. How can we refer to services provided by
different versions of same bundle.

 

Regards,

Jay Rajani