Hi Olivier,
why not simply make something like the following in the RouteBuilder:
Properties properties = new Properties();
properties.load(file);
from("uri").throttler(Integer.parseInt(properties.getProperty("throttler.value")).to("uri");
Moreover, if you use it in SMX4, you can get the property from the
ConfigAdmin service.
Regards
JB
On 10/29/2010 05:00 PM, Olivier.Roger wrote:
Hello Camel !
Since using properties in non-string attribute in Spring DSL is not possible
(see CAMEL-3171).
I would like to have a example how to do it in Java DSL.
For example I use a Throttler and I would like to be able to configure the #
msg per period and the period parameters with properties (in fact with SMX
config service).
Thanks in advance,
Olivier