You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by cmoulliard <cm...@gmail.com> on 2008/10/22 16:45:13 UTC

How to set the value of the headerName through spring xml ?

Hi,

I would like to know How I can set the value of a headerName through spring
XML because the following syntax is not correct :

<setHeader headerName="FileComponent.HEADER_FILE_NAME"
value="stockprice.txt">
   <simple/>
</setHeader>

KR,

Charles Moulliard

-----
Enterprise Architect

Xpectis
12, route d'Esch
L-1470 Luxembourg

Phone +352 25 10 70 470
Mobile +352 621 45 36 22

e-mail : cmoulliard@xpectis.com
web site :  www.xpectis.com www.xpectis.com 
My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: http://www.nabble.com/How-to-set-the-value-of-the-headerName-through-spring-xml---tp20112230s22882p20112230.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: How to set the value of the headerName through spring xml ?

Posted by cmoulliard <cm...@gmail.com>.
Surprisingly, this syntax is not longer supported by Camel 1.5 (I have
checked the XSD schema) ...


harpritt wrote:
> 
> For 1.4
> <setHeader headerName="org.apache.camel.file.name" value="BLAH.txt"/> 
> should be cool
> 
> 
> cmoulliard wrote:
>> 
>> Hi,
>> 
>> I would like to know How I can set the value of a headerName through
>> spring XML because the following syntax is not correct :
>> 
>> <setHeader headerName="FileComponent.HEADER_FILE_NAME"
>> value="stockprice.txt">
>>    <simple/>
>> </setHeader>
>> 
>> KR,
>> 
>> Charles Moulliard
>> 
> 
> 


-----
Enterprise Architect

Xpectis
12, route d'Esch
L-1470 Luxembourg

Phone +352 25 10 70 470
Mobile +352 621 45 36 22

e-mail : cmoulliard@xpectis.com
web site :  www.xpectis.com www.xpectis.com 
My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: http://www.nabble.com/How-to-set-the-value-of-the-headerName-through-spring-xml---tp20112230s22882p20113082.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: How to set the value of the headerName through spring xml ?

Posted by Jonathan Anstey <ja...@gmail.com>.
And for 1.5 it should be

<setHeader headerName="FileComponent.HEADER_FILE_NAME">
   <constant>stockprice.txt</constant>
</setHeader>

harpritt wrote:
> For 1.4
> <setHeader headerName="org.apache.camel.file.name" value="BLAH.txt"/> 
> should be cool
>
>
> cmoulliard wrote:
>   
>> Hi,
>>
>> I would like to know How I can set the value of a headerName through
>> spring XML because the following syntax is not correct :
>>
>> <setHeader headerName="FileComponent.HEADER_FILE_NAME"
>> value="stockprice.txt">
>>    <simple/>
>> </setHeader>
>>
>> KR,
>>
>> Charles Moulliard
>>
>>     
>
>   


Re: How to set the value of the headerName through spring xml ?

Posted by harpritt <ha...@hotmail.com>.
For 1.4
<setHeader headerName="org.apache.camel.file.name" value="BLAH.txt"/> 
should be cool


cmoulliard wrote:
> 
> Hi,
> 
> I would like to know How I can set the value of a headerName through
> spring XML because the following syntax is not correct :
> 
> <setHeader headerName="FileComponent.HEADER_FILE_NAME"
> value="stockprice.txt">
>    <simple/>
> </setHeader>
> 
> KR,
> 
> Charles Moulliard
> 

-- 
View this message in context: http://www.nabble.com/How-to-set-the-value-of-the-headerName-through-spring-xml---tp20112230s22882p20113029.html
Sent from the Camel - Users mailing list archive at Nabble.com.