Hi This is really an area of OSGi Blueprint and what it supports. And possible if Apache Aries Blueprint has some extensions to support placeholders in filters etc.
You can use Java code to refer to a osgi service with a dynamic filter. But I guess you want to do this in the blueprint XML file instead? On Thu, Dec 6, 2012 at 7:35 PM, Sunil Pandit <[email protected]> wrote: > Hi All , > > I am using FUSE ESB . I have a OSGI service registered in service registry > and have a camel context which has a service reference . The service > reference specifies an interface and a filter . Everything works fine when > the filter has hardcoded value in the camel context route . Such as filter > =("org.name =xyz "). > > What we are trying to do is dynamically provide this filter value therefore > Camel Context can resolve this reference dynamically . I have tried using > property place holder and read a property , but it seems that the filter > does not process anything other than string . > > So my question is what is the other way to dynamically resolve a service > from camel context. I need to resolve the service on two criteria one is an > interface and other is property with which that service was registered in > the service registry. > > Thanks > Sunil > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/OSGI-Service-reference-in-Camel-Context-tp5723717.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
