Hi,

I have a property file that I am reading in my blueprint XML file.

ex:
my_host=http://dummyUrl


In my route I am have used the <simple> tag to look up the property file.

In 1st scenario: When i hardcode the kay name in my route. The property file
is reading successfully.
<setHeader
headerName="myHeader"><simple>properties:my_host</simple></setHeader>

In 2nd scenario: I am trying to get this KEY from an HTTP query parameter.
And, passsing this as a key to the <simple> expression dynamically.
<setHeader
headerName="myHeader"><simple>${properties:${in.header.name}_host}</simple></setHeader>

In the 2nd scenario its not reading the property file. When I check the
logs. Only the HTTP query parameter is replaced while running, its not
reading the key.

14:33:14,368 | INFO  | qtp14054126-5682 | Tracer                           |
?                                   ? | 89 -
 org.apache.camel.camel-core - 2.8.0.fuse-06-11 |
ID-PC103429-63993-1345549755474-82-1 >>> (route83) setHeader[myHeader]
--> log[The property value is: ${in.header.myHeader}] <<< Pattern:InOut,
Headers:{CamelHttpServletResponse=HTTP/1.1 200
14:33:14,368 | INFO  | qtp14054126-5682 | route83                          |
?                                   ? | 89 -
 org.apache.camel.camel-core - 2.8.0.fuse-06-11 | The property value is:
${properties:my_host}

May I know, where exactly the error is throwing.

Regards,
Pradeep




--
View this message in context: 
http://servicemix.396122.n5.nabble.com/Property-file-reading-dynamically-in-Blueprint-tp5714229.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to