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 2019/11/08 11:51:17 UTC

[GitHub] [camel-quarkus] davsclaus opened a new issue #386: @Inject CamelContext on RouteBuilder seems not working

davsclaus opened a new issue #386: @Inject CamelContext on RouteBuilder seems not working
URL: https://github.com/apache/camel-quarkus/issues/386
 
 
   ```
   @ApplicationScoped
   public class MyCamel extends RouteBuilder {
   
       @Inject
       private CamelContext camel;
   
       @Override
       public void configure() throws Exception {
           from("timer:foo").routeId("myRoute").
                   process(exchange -> System.out.println(camel));
       }
   }
   ```
   
   This prints null

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services