You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/06/28 20:04:56 UTC

[GitHub] [camel-quarkus] davsclaus commented on issue #2849: string-template:bean Bean Injection: camel quarkus cannot find resource error

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

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