-
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
Timer not fired in native mode #683
Comments
Can you show what you have in your POM? |
https://github.com/jstakun/wildwest-bot/blob/quarkus/wildwest-bot/pom.xml |
What should be correct value for camel.main.xml-routes In examples you are using:
But this doesn't work for me in both java and native mode.
and this works for me only in java mode |
|
I did try the example we provide and everything works in both native and jvm mode. Native log:
|
Thanks! This was missing part for me. After adding resources-config.json it works like a charm in both java and native mode. |
Hello
I've got route initated by timer. In java mode it works fine, but in native mode it doesn't seem to be initiated. Even simple test fails in native mode:
<route id="timer-test-route"> <from id="timer-test" uri="timer://testTimer?period=10s"/> <log id="_log41" message="this test timer is fired every 10 second"/> </route>
2020-02-05 17:55:44,449 INFO [org.apa.cam.mai.BaseMainSupport] (main) Auto-configuration summary:
2020-02-05 17:55:44,449 INFO [org.apa.cam.mai.BaseMainSupport] (main) camel.main.xmlroutes=classpath:/spring/camel-routes.xml
2020-02-05 17:55:44,449 INFO [org.apa.cam.mai.BaseMainSupport] (main) camel.context.name=wildwest-bot
2020-02-05 17:55:44,449 INFO [org.apa.cam.qua.cor.CamelRoutesCollector] (main) Loading additional Camel XML routes from: classpath:/spring/camel-routes.xml
2020-02-05 17:55:44,449 INFO [org.apa.cam.qua.cor.FastCamelContext] (main) Apache Camel 3.0.1 (CamelContext: wildwest-bot) is starting
2020-02-05 17:55:44,449 INFO [org.apa.cam.imp.eng.DefaultManagementStrategy] (main) JMX is disabled
2020-02-05 17:55:44,449 INFO [org.apa.cam.qua.cor.FastCamelContext] (main) StreamCaching is not in use. If using streams then its recommended to enable stream caching. See more details at http://camel.apache.org/stream-caching.html
2020-02-05 17:55:44,450 INFO [org.apa.cam.qua.cor.FastCamelContext] (main) Total 0 routes, of which 0 are started
2020-02-05 17:55:44,450 INFO [org.apa.cam.qua.cor.FastCamelContext] (main) Apache Camel 3.0.1 (CamelContext: wildwest-bot) started in 0.001 seconds
2020-02-05 17:55:44,450 INFO [io.quarkus] (main) wildwest-bot 1.0.0-SNAPSHOT (running on Quarkus 1.2.0.Final) started in 0.006s.
2020-02-05 17:55:44,450 INFO [io.quarkus] (main) Profile prod activated.
2020-02-05 17:55:44,450 INFO [io.quarkus] (main) Installed features: [camel-bean, camel-core, camel-direct, camel-jackson, camel-log, camel-netty, camel-netty-http, camel-support-common, camel-support-xml, camel-timer, camel-xml, cdi]
I'm using quarkus 1.2.0.Final, camel-quarkus 1.0.0-M3 and GraalVM 19.3.1
Please advice.
The text was updated successfully, but these errors were encountered: