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.

Reply via email to