I came across same problem while defining endpoint uri with proerties in from or to, but what i did was defined endpoint and then in from use ref to point to endpoint. Similarly in ur case, you can define a exeutor service bean with properties used and then ref that in thread.
Thanks, Sumit Teke Omniscient Software Pvt Ltd T. +91-20-26680814, Ext. 217 F. +91-20-26680815, Ext. 212 M. +91-9975709032 E. [email protected] On Friday 25 February 2011 06:58 AM, 차정호 wrote: > 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. > >
