-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Camel quarkus disable auto route discovery not working #1816
Comments
@heyplusyou how did you define the route ? I mean it's just a RouteBuilder class or annotate with a CDI annotation ? |
@lburgazzoli defined with @ApplicationScoped see below
|
ok, now I see what the problem is, working on a fix. |
@heyplusyou btw, thinking about it a little bit more, unless you want to add the route yourself, if you only want to activate a route upon a condition, you can disable route's auto-startup as you are already doing, isn't that enough ? |
I can confirm when I remove the @ApplicationScoped then its not starting automatically. But of course would be great to control it via properties
Yes and no, my idea was to start the route with different attributes e.g. for test environment I can just switch the directories. But its a good point, let me try it it. |
For most of the things you can probably rely on properties I guess but let us know so we can eventually enhance what we do |
Hi all,
I am currently setting up a camel project based on quarkus and I would like to handle the route activation based on DB entries at runtime. We created a couple of routes in DSL by extending the RouteBuilder and it works fine with route auto discovery.
But to implement the DB and runtime activation I would need to disable the auto discovery. Is there a way to do this?
I found the option
But I still finds the RouteBuilders and starts them during startup.
Quarkus: 1.8.0
Camel Quarkus: 1.1.0
application.properties
log
Many thanks!
The text was updated successfully, but these errors were encountered: