Re: reading http endpoint from properties files

2012-02-01 Thread Claus Ibsen
On Wed, Feb 1, 2012 at 8:34 PM, anand sridhar wrote: > The Property Place holder did the trick for me. > However, I was hoping if I could extend it to read properties from the > camel exchange . > Any pointers to examples would be welcome. > If you want a dynamic to in Camel. Then take a look at

Re: reading http endpoint from properties files

2012-02-01 Thread anand sridhar
The Property Place holder did the trick for me. However, I was hoping if I could extend it to read properties from the camel exchange . Any pointers to examples would be welcome. Thanks, Anand On Thu, Jan 26, 2012 at 12:24 AM, Claus Ibsen wrote: > Hi > > See this FAQ > http://camel.apache.org/h

Re: reading http endpoint from properties files

2012-01-26 Thread Claus Ibsen
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

Re: reading http endpoint from properties files

2012-01-26 Thread Marco Westermann
Hi what you need is the properties component. Look here: http://camel.apache.org/properties.html then you can refer your endpoint like this .to("{{myHttpEndpoint}}") where you have that defined in your properties like this: myHttpEndpoint=http://servername.com/test regards, Marco Am 26.01

Re: reading http endpoint from properties files

2012-01-25 Thread Bilgin Ibryam
I think what you need is a dynamic router http://camel.apache.org/dynamic-router.html Did you look at it? Bilgin On 26 January 2012 00:00, anand sridhar 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 he

reading http endpoint from properties files

2012-01-25 Thread anand sridhar
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