camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: reading http endpoint from properties files
Date Thu, 26 Jan 2012 08:24:18 GMT
Hi

See this FAQ
http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html

Or you can define the endpoint using property placeholders
http://camel.apache.org/using-propertyplaceholder.html
http://camel.apache.org/how-do-i-use-spring-property-placeholder-with-camel-xml.html


On Thu, Jan 26, 2012 at 1:00 AM, anand sridhar <anand.forums@gmail.com> wrote:
> Hi,
> I have a route with the endpoint being a HTTP URL.
> It so happens that this URL is in a  properties file.
>
> Could some one help me to understand how I can dynamically load the end
> point name from a property file or in general from header, property etc..?
>
> apparently, none of these work
>
> from("jms:q1")
> .to("${properties:httpurl}")
>
> or
> from("jms:q1")
> .to(header("httpurl"));
>
> or
>
> from("jms:q1")
> .to(property("httpurl"));
>
> does not resolve even though the httpurl parameter is present in header as
> well as property.
>
> Thanks,
> Anand



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message