Hi Paul,
You can find an example here https://github.com/daghanacay/com.easyiot.application/blob/master/com.easyiot.heatmap.application/configuration/configuration.json see "mqttProtocolReference.target" : "(id=ttn.staging.mqtt)", and the corresponding binding here https://github.com/daghanacay/com.easyiot.device/blob/master/com.easyiot.development.board1.device.provider/src/com/easyiot/development/board1/device/provider/DevelopmentBoard1Impl.java // Bind mqttClient @Reference(name = "mqttProtocolReference", cardinality = ReferenceCardinality.OPTIONAL, policyOption = ReferencePolicyOption.GREEDY) private TtnMqttProtocol ttnMqttClient; Hope to see you at OSGi meetings [😊] -Daghan ________________________________ From: [email protected] <[email protected]> on behalf of Paul F Fraser <[email protected]> Sent: Friday, November 11, 2016 7:03 AM To: OSGi Developer Mail List Subject: [osgi-dev] Reference Filters Hi, A previous discussion in this list @Component public class Component { @Reference(target = "(alias = ${alias})" public void bindService(Service service) } and the solution proposed was to use <refname>.target as a property. Are there any code examples available that provide more info on this technique. I am trying to create multiple named databases and obtain unique references to each by their name. Regards Paul Fraser
_______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
