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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

GitBox
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:
[hidden email]


With regards,
Apache Git Services