Hi Camel 2.7 will be able to support that, however in XML you need to use the placeholder namespace to set the value.
See some details at the bottom of this page, where we use prop:xxx=yyyy to set property XXX to the value of YYYY https://cwiki.apache.org/confluence/display/CAMEL/Properties 2011/2/25 차정호 <[email protected]>: > Hello > > > > I love Camel framework! > > > > I have some problem using camel thread pool. > > I have configurable values in the property file "test.properties" , and I > want to use them in camel spring xml. > > > > Like the below spring xml : > > ... > > <context:property-placeholder location="classpath:test.properties" /> > > > > <route> > > <from uri="seda:in" /> > > <threads poolSize="${thread.size}" maxPoolSize="${thread.max.size}" > > > <to uri="bean:someBean?method=test" /> > > </threads> > > </route> > > > > ... > > > > But the poolSize, maxPoolSize xml schema type is very strict, they accept > only the int type. > > > > Could someone help me to set configurable poolSize, maxPoolSize in property > file ? > > > > Thanks a lot. > > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
