camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From camel_user <>
Subject Camel dynamic properties placeholder substitution in Spring XML
Date Sat, 16 Jun 2012 08:13:41 GMT

Is there a way in camel to substitute property placeholders in Spring XML?
What I mean by this is something along the lines of:

In my properties file I want to have:


and in spring XML 

	<from uri="direct:someuri" />
	<to uri="${properties:dynamic.path}" />

however the {0} bit in the route is dynamic and has to be injected at

I guess in java DSL I could use something like this to get the dynamic route

String route=MessageFormat.format((String) props.get("dynamic.path"),

But is there anything similar that can be done in Spring xml?


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message