camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "G.J. van de Streek" <str...@avisi.nl>
Subject Re: string constants in simple expression language
Date Thu, 23 Apr 2009 06:40:53 GMT

The deprecation is in using setHeader with a String as the second argument:
.setHeader(FileComponent.HEADER_FILE_NAME, "agents.xml")
And indeed Willems suggestion fixes the warning:
.setHeader(FileComponent.HEADER_FILE_NAME, constant("agents.xml"))


Claus Ibsen-2 wrote:
> 
> Hi
> 
> What is the @deprecation?
> 
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/string-constants-in-simple-expression-language-tp23174960p23191154.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message