lburgazzoli commented on issue #683: Timer not fired in native mode URL: https://github.com/apache/camel-quarkus/issues/683#issuecomment-582802212 I did try the [example](https://github.com/apache/camel-quarkus/tree/master/examples/timer-log-xml) we provide and everything works in both native and jvm mode: ``` $ ./target/camel-quarkus-examples-timer-log-xml-1.1.0-SNAPSHOT-runner 2020-02-06 09:57:51,639 DEBUG [org.apa.cam.mai.BaseMainSupport] (main) Properties from Camel properties component: 2020-02-06 09:57:51,639 DEBUG [org.apa.cam.mai.BaseMainSupport] (main) camel.root=/home/lburgazz/work/apache/dev/camel 2020-02-06 09:57:51,639 DEBUG [org.apa.cam.mai.BaseMainSupport] (main) camel.context.name=quarkus-camel-example-timer-log-xml 2020-02-06 09:57:51,639 DEBUG [org.apa.cam.mai.BaseMainSupport] (main) camel.version=3.0.1 2020-02-06 09:57:51,639 DEBUG [org.apa.cam.mai.BaseMainSupport] (main) camel.quarkus.project.root=/home/lburgazz/work/apache/dev/camel-quarkus 2020-02-06 09:57:51,639 DEBUG [org.apa.cam.mai.BaseMainSupport] (main) camel.main.xml-routes=file:src/main/resources/routes/my-routes.xml 2020-02-06 09:57:51,641 DEBUG [org.apa.cam.mai.BaseMainSupport] (main) Auto-configuring main from loaded properties: 1 2020-02-06 09:57:51,642 DEBUG [org.apa.cam.mai.BaseMainSupport] (main) Configured property: camel.main.xmlroutes=file:src/main/resources/routes/my-routes.xml on bean: org.apache.camel.main.MainConfigurationProperties@3cd01c0 2020-02-06 09:57:51,643 DEBUG [org.apa.cam.mai.BaseMainSupport] (main) Auto-configuring CamelContext from loaded properties: 1 2020-02-06 09:57:51,644 DEBUG [org.apa.cam.mai.BaseMainSupport] (main) Configured property: camel.context.name=quarkus-camel-example-timer-log-xml on bean: CamelContext(quarkus-camel-example-timer-log-xml) 2020-02-06 09:57:51,645 INFO [org.apa.cam.mai.BaseMainSupport] (main) Auto-configuration summary: 2020-02-06 09:57:51,645 INFO [org.apa.cam.mai.BaseMainSupport] (main) camel.main.xmlroutes=file:src/main/resources/routes/my-routes.xml 2020-02-06 09:57:51,645 INFO [org.apa.cam.mai.BaseMainSupport] (main) camel.context.name=quarkus-camel-example-timer-log-xml 2020-02-06 09:57:51,645 DEBUG [org.apa.cam.mai.RoutesConfigurer] (main) RoutesCollectorEnabled: org.apache.camel.quarkus.core.CamelRoutesCollector@314c468 2020-02-06 09:57:51,646 INFO [org.apa.cam.qua.cor.CamelRoutesCollector] (main) Loading additional Camel XML routes from: file:src/main/resources/routes/my-routes.xml 2020-02-06 09:57:51,648 DEBUG [org.apa.cam.mai.RoutesConfigurer] (main) Adding routes into CamelContext from XML files: file:src/main/resources/routes/my-routes.xml 2020-02-06 09:57:51,648 INFO [org.apa.cam.qua.cor.FastCamelContext] (main) Apache Camel 3.0.1 (CamelContext: quarkus-camel-example-timer-log-xml) is starting 2020-02-06 09:57:51,648 INFO [org.apa.cam.imp.eng.DefaultManagementStrategy] (main) JMX is disabled 2020-02-06 09:57:51,650 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-06 09:57:51,650 INFO [org.apa.cam.qua.cor.FastCamelContext] (main) Route: xml-route started and consuming from: timer://from-xml?period=1s 2020-02-06 09:57:51,650 INFO [org.apa.cam.qua.cor.FastCamelContext] (main) Total 1 routes, of which 1 are started 2020-02-06 09:57:51,650 INFO [org.apa.cam.qua.cor.FastCamelContext] (main) Apache Camel 3.0.1 (CamelContext: quarkus-camel-example-timer-log-xml) started in 0.002 seconds 2020-02-06 09:57:51,650 INFO [io.quarkus] (main) camel-quarkus-examples-timer-log-xml 1.1.0-SNAPSHOT (running on Quarkus 1.2.0.Final) started in 0.021s. 2020-02-06 09:57:51,650 INFO [io.quarkus] (main) Profile prod activated. 2020-02-06 09:57:51,650 INFO [io.quarkus] (main) Installed features: [camel-core, camel-log, camel-support-common, camel-support-xml, camel-timer, camel-xml, cdi] 2020-02-06 09:57:52,650 INFO [xml-route] (Camel (camel-1) thread #1 - timer://from-xml) Hello XML! 2020-02-06 09:57:53,650 INFO [xml-route] (Camel (camel-1) thread #1 - timer://from-xml) Hello XML! 2020-02-06 09:57:54,650 INFO [xml-route] (Camel (camel-1) thread #1 - timer://from-xml) Hello XML! 2020-02-06 09:57:54,668 INFO [org.apa.cam.qua.cor.FastCamelContext] (main) Apache Camel 3.0.1 (CamelContext: quarkus-camel-example-timer-log-xml) is shutting down 2020-02-06 09:57:54,668 INFO [org.apa.cam.mai.MainLifecycleStrategy] (main) CamelContext: quarkus-camel-example-timer-log-xml has been shutdown, triggering shutdown of the JVM. 2020-02-06 09:57:54,669 INFO [org.apa.cam.qua.cor.FastCamelContext] (main) Apache Camel 3.0.1 (CamelContext: quarkus-camel-example-timer-log-xml) uptime 3.020 seconds 2020-02-06 09:57:54,669 INFO [org.apa.cam.qua.cor.FastCamelContext] (main) Apache Camel 3.0.1 (CamelContext: quarkus-camel-example-timer-log-xml) is shutdown in 0.001 seconds 2020-02-06 09:57:54,669 INFO [io.quarkus] (main) camel-quarkus-examples-timer-log-xml stopped in 0.001s ```
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
