davsclaus commented on issue #2849: URL: https://github.com/apache/camel-quarkus/issues/2849#issuecomment-869996572
You are using the bean the wrong way, its not to lookup a bean and dynamic call a method on that bean. The bean should be a string or input stream that has the template. So its often a bit useless. If you want to use a dynamic template then use stringtemplate header support https://camel.apache.org/components/latest/string-template-component.html You need to turn on allow from template, see this unit test https://github.com/apache/camel/blob/main/components/camel-stringtemplate/src/test/java/org/apache/camel/component/stringtemplate/StringTemplateViaHeaderTest.java -- 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