ammachado commented on PR #9510:
URL: https://github.com/apache/camel/pull/9510#issuecomment-1464994118

   I helped debugging a production issue where some code was refactored from a 
route definition (`from(...).setHeader("name", constant("value")`) to a 
processor (`exchange.getMessage().setHeader("name", constant("value")`).  Where 
previously the header was set to the correct value, after the refactor the 
header was being set to `constant{value}`.
   
   The `setHeader` and `setProperty` methods on Java DSL have overloads for 
`Expression` and `Supplier` to resolve the values, where the methods on the 
message / exchange don't.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to