Re: Only one, but difrent endpoints in same route, is this the way ?

2014-07-25 Thread Frankiboy
Thanks , just wat im looking fore, it works ); from(cxf:bean:hubws?dataFormat=MESSAGE).streamCaching() .onException(Exception.class).process(new LogError()).end() .bean(LogMq.class, logStart) .bean(AddIpBean.class) .recipientList().method(Util.class, getEndpoint

Only one, but difrent endpoints in same route, is this the way ?

2014-07-24 Thread Frankiboy
I have information in my header, where i look in a property fil, to get the correct url. So in my SetRoutingKey.class i have this line where i put the correct endpoint requestHeaders.put(CentralRouter.ENDPOINT, Util.getEndpoint()); but my .to(header(ENDPOINT).convertToString().toString())

Re: Only one, but difrent endpoints in same route, is this the way ?

2014-07-24 Thread Claus Ibsen
Hi Maybe its this what you are looking for http://camel.apache.org/how-to-use-a-dynamic-uri-in-to.html On Thu, Jul 24, 2014 at 2:21 PM, Frankiboy mail.to.fra...@gmail.com wrote: I have information in my header, where i look in a property fil, to get the correct url. So in my