When you register the same service by a different versin of a bundle, you can specify a service property with a value (e.g. version=2.0) and then in your client bundle, you can search the service with filter attribute to get that matching service property.
<reference id="accountRef" interface="org.apache.aries.simple.Account" component-name=”myAccount” filter=”(version=2.0)”/> Regards, Emily On Mon, Jan 21, 2013 at 1:11 PM, Jay Rajani <[email protected] > wrote: > 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**** > -- Thanks Emily ================= Emily Jiang [email protected]
