Re: How to get header parameter in a to route of camel

2012-03-23 Thread Christian Müller
I didn't used the cxfrs component until now, but my expectation would be: - set the header you would like to send as message header - may provide your own "headerFilterStrategy" (checkout [1] for this) This should work, IMO. If not, feel free to raise a JIRA for it. [1] http://camel.apache.org/cx

Re: How to get header parameter in a to route of camel

2012-03-22 Thread atg roxx
Hi Marco, I am facing a strange problem when using recipientList, the processor method where I am setting the value in header is getting the input as the appended value of the earlier request. from( "jms:request") .process(new AddHeader("test")) .to("cxfrs://http://abc.com/"

Re: How to get header parameter in a to route of camel

2012-03-22 Thread Marco Westermann
Hi, you cannot use simple language in the to endpoint-uri, but you can use it in the recipientList! from( "jms:request") .process(new AddHeader()) .recipientList(simple("cxfrs://http://abc.com/${header.test}";)); regards, Marco Am 22.03.2012 16:13, schrieb atg roxx:

Re: How to get header parameter in a to route of camel

2012-03-22 Thread atg roxx
Hi Alex, I doubt that we can use simple within to. I am getting compilation error for it. Regards, -atg roxx On Thu, Mar 22, 2012 at 2:59 PM, Alex Anderson wrote: > > from( "jms:request") > >.process(new AddHeader()) > >.to("cxfrs://http://abc.com/"; + < header (test)>)

Re: How to get header parameter in a to route of camel

2012-03-22 Thread atg roxx
Hi RNPG, I check the links you have provided and they are really good, but they dont seem to solve my problem. I want to genreatet the URI in dynamic fashion. i.e http://abc.zyz.com/ Can you suggest a way how to generate this uri. --Regards, atg roxx On Thu, Mar 22, 2012 at 12:22 PM, Reube

Re: How to get header parameter in a to route of camel

2012-03-22 Thread Alex Anderson
> from( "jms:request") >            .process(new AddHeader()) >            .to("cxfrs://http://abc.com/"; + < header (test)>) Have you tried: .to(simple("cxfrs://http://abc.com/${header.test}";))