jamesnetherton commented on code in PR #3793: URL: https://github.com/apache/camel-quarkus/pull/3793#discussion_r876688909
########## integration-tests/velocity/src/main/resources/application.properties: ########## @@ -15,4 +15,6 @@ ## limitations under the License. ## --------------------------------------------------------------------------- -quarkus.native.resources.includes = template/* \ No newline at end of file +quarkus.native.resources.includes = template/* + +quarkus.camel.native.reflection.include-patterns=org.apache.camel.Exchange Review Comment: Probably it's needed because the exchange properties are not handled here: https://github.com/apache/camel/blob/985ea1061e9d2c1db81c9e6da751258700454978/core/camel-support/src/main/java/org/apache/camel/support/ExchangeHelper.java#L487-L505 In the template, it'd be nicer if you could do: ``` Dear ${headers.name}. You ordered item ${properties.item} on ${body}. ``` I.e not have to reference the `Exchange` class. So we should open a Camel ticket and add that capability if possible. I guess we could live with the workaround in the test until then. I don't really want us to promote reflective access to `Exchange` etc. We already [discourage](https://github.com/apache/camel-quarkus/blob/5127a3c6fa25d4788b2ffddca220545df08cd42e/docs/modules/ROOT/pages/reference/extensions/velocity.adoc#allowcontextmapall-option-in-native-mode) this. -- 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