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/11/06 23:02:06 UTC

[GitHub] [camel-website] DouglasGo8 edited a comment on pull request #612: Added Blog Entry Deploying Camel Route in AWS Lambda

DouglasGo8 edited a comment on pull request #612:
URL: https://github.com/apache/camel-website/pull/612#issuecomment-962520923


   Guys I'm try reproduce this same example, but receive NullpointerException over @Inject ProducerTemplate template line;
   
   `
   @Named("languageScoreLambda")
   public class LanguageScoreLambda implements RequestHandler<Language, LanguageScoreDto> {
   
     @Inject
     ProducerTemplate template;
   
     @Override
     public LanguageScoreDto handleRequest(Language input, Context context) {
       return template.requestBody("{{language.score.direct.endpoint}}", input, LanguageScoreDto.class);
     }
   }
   `
   
   Full sample 
   
   https://github.com/DouglasGo8/mmp-aws-certification-dev-assoc/tree/master/mp-lambda-quarkus


-- 
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