Yes; if you use
You get an Integer. But if you do what the OP did
<header-enricher input-channel="replyChannelInput" output-channel="echoInput">
You get a String (you can fix this with an expression).
<header-enricher input-channel="in" output-channel="out">
<header name="priority" value="7"/>
Given that we have a well-known header <priority/>, that works correctly (aside from the schema issue), that is a better way to solve the issue than using an expression.
Gary P. Russell
Spring Integration Team
SpringSource, a division of VMware