On Wed, May 19, 2010 at 11:28 AM, ankelee <[email protected]> wrote:
>
> On http://camel.apache.org/configuring-camel.html I can see that Camel 2.3
> supports importing routes from seperate XML-files.
>
> I would like to be able to do a generic route that should be configurable
> for 3 different message types. I imagine doing 3 different CamelContext in
> which I import the same route and the configure it based on a properties
> file. Is this possible? So I use the same propertynames in the generic route
> but based on which CamelContext in which the route is loaded it uses the
> properties in that context?

Yes that is the idea. You can use the new properties component to
define property keys in the endpoints in the <routeContext> routes.
And then each of the 3 CamelContext can have their own properties file
with their own values for those keys.



> --
> View this message in context: 
> http://old.nabble.com/Routeconfiguration-using-Spring-imports.-tp28605933p28605933.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to