You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "ammachado (via GitHub)" <gi...@apache.org> on 2023/03/11 19:34:41 UTC

[GitHub] [camel] ammachado commented on pull request #9510: Convert expression when setting header / property on message / exchange.

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-unsubscribe@camel.apache.org

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