camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bxkrish <balainf...@gmail.com>
Subject reading integer values from properties file
Date Tue, 20 Aug 2013 23:11:52 GMT
Hi 

I am using Camel API "propertyPlaceholder" to access my properties. All the
String values are resolved without any issues. Can you please provide any
insight on reading integer values? 

Camel Version = 2.4

*Configuration:*

<camelContext..>
<propertyPlaceholder id="properties"
location="file:/usr/config/properties/params.properties" />
...

<property name="retryLimit" value="{{maxRetries.DEV}}" />

*params.properties*
maxRetries.DEV = 10

*Exception:*

org.apache.camel.RuntimeCamelException: java.lang.NumberFormatException: For
input string: "{{maxRetries.DEV}}"

Please help.

Thanks
Bala



--
View this message in context: http://camel.465427.n5.nabble.com/reading-integer-values-from-properties-file-tp5737629.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message