If you have to set a property to tell to tell it to use "host" vs. "host1", then why not just use that property to specify the host in the first place?
On Wed, Aug 29, 2012 at 2:43 AM, pradet <[email protected]> wrote: > Hi, > > Currently i am reading the property file using OSGi config Admin services > approach. which is working fine. > > <cm:property-placeholder persistent-id="sampleFile" > update-strategy="reload"> > <cm:default-properties> > <cm:property name="host" value=""/> > <cm:property name="host1" value=""/> > </cm:default-properties> > </cm:property-placeholder> > > Where, 'sampleFile.cfg' is my config file, which I have placed in the ETC > folder of ServiceMix. > > I want to read the key name also from property file. i.e. instead of > hardcoding the keyname in the blueprint XML file. I want to pass the > property Key name which I am getting from an HTTP parameter. > > Can I configure something like this ? > > <cm:default-properties> > <cm:property name="${in.header.<paramname>}" > value=""/> > </cm:default-properties> > > Can someone let me know, if this can be done ? > > Thanks in Advance, > > Pradeep > > > > > -- > View this message in context: > http://servicemix.396122.n5.nabble.com/Is-it-possible-to-read-property-key-without-hardcoding-in-Blueprint-using-OSGi-config-Admin-tp5714288.html > Sent from the ServiceMix - User mailing list archive at Nabble.com.
