Hi The attached .zip file works for me. If I run it from IDEA then it keeps running.
However the stacktrace you had had quartz in it, which this .zip do not etc. 2019-12-05 14:56:01,039 [main ] INFO DefaultRoutesCollector - Loading additional Camel XML rests from: classpath:camel-rest/*.xml processing 2019-12-05 14:56:02,063 [4 - timer://foo] INFO route1 - running processing 2019-12-05 14:56:07,040 [4 - timer://foo] INFO route1 - running processing On Thu, Dec 5, 2019 at 2:19 PM Dennis Holunder <dennish...@gmail.com> wrote: > > Hi Claus, > > Attached a small reproducer. Could you please have a look? Thanks > > Am Do., 5. Dez. 2019 um 13:51 Uhr schrieb dennisholu [via Camel] > <ml+s465427n5849942...@n5.nabble.com>: > > > > I ran it from IDE using Main: > > > > public class MyMain { > > public static void main(String[] args) throws Exception { > > org.apache.camel.cdi.Main camel = new org.apache.camel.cdi.Main(); > > camel.run(args); > > } > > } > > > > Am Do., 5. Dez. 2019 um 13:15 Uhr schrieb Claus Ibsen-2 [via Camel] > > <[hidden email]>: > > > > > > > > Hi > > > > > > You can try to debug and set a breakpoint and see maybe if there is > > > some way to know. > > > > > > Also how do you run your cdi app. > > > > > > On Thu, Dec 5, 2019 at 1:10 PM Dennis Holunder <[hidden email]> wrote: > > > > > > > > > > > Hi, > > > > > > > > I'm trying to migrate a CDI Route to camel-3 and seeing in log that > > > > the route is starting graceful shutdown right after start. > > > > > > > > 12:04:00 [main] INFO o.a.camel.impl.DefaultCamelContext Apache Camel > > > > 3.0.0 (CamelContext: camel-1) started in 3.683 seconds > > > > 12:04:00 [main] DEBUG o.a.c.c.quartz.QuartzComponent Storing > > > > camelContextName=camel-1 into Quartz Context space. > > > > 12:04:00 [main] INFO o.a.c.c.quartz.QuartzComponent Starting > > > > scheduler. > > > > 12:04:00 [main] INFO org.quartz.core.QuartzScheduler Scheduler > > > > DefaultQuartzScheduler-camel-1_$_NON_CLUSTERED started. > > > > 12:04:00 [DefaultQuartzScheduler-camel-1_QuartzSchedulerThread] DEBUG > > > > o.quartz.core.QuartzSchedulerThread batch acquisition of 0 triggers > > > > 12:04:01 [main] DEBUG o.a.c.c.p.PropertiesComponent Parsed location: > > > > application.properties > > > > 12:04:01 [main] INFO o.apache.camel.main.BaseMainSupport Using > > > > properties from classpath:application.properties > > > > 12:04:01 [main] DEBUG o.apache.camel.main.BaseMainSupport Properties > > > > from Camel properties component: > > > > 12:04:01 [main] DEBUG o.a.c.i.e.DefaultStreamCachingStrategy > > > > StreamCaching is not enabled > > > > 12:04:01 [main] DEBUG o.apache.camel.main.RoutesConfigurer > > > > RoutesCollectorEnabled: > > > > org.apache.camel.main.DefaultRoutesCollector@28393e82 > > > > 12:04:01 [main] DEBUG o.a.c.main.DefaultRoutesCollector Java > > > > RoutesBuilder: com/company/MyRoute$Proxy$_$$_WeldClientProxy accepted > > > > by include/exclude filter: true > > > > > > > > 12:04:01 [main] DEBUG o.apache.camel.main.RoutesConfigurer Adding > > > > routes into CamelContext from RoutesBuilder: Routes: (list of routes > > > > removed by me) > > > > 12:04:01 [main] DEBUG o.a.camel.impl.DefaultCamelContext Adding > > > > routes from builder: Routes: (list of routes removed by me) > > > > 12:04:01 [main] INFO o.a.c.i.e.DefaultShutdownStrategy Starting to > > > > graceful shutdown 1 routes (timeout 300 seconds) > > > > > > > > I tried to create a small reproducer project, but it is working fine. > > > > Is there a way to find out what is triggering the shutdown? > > > > > > > > Dan > > > > > > > > > > > > -- > > > Claus Ibsen > > > ----------------- > > > http://davsclaus.com @davsclaus > > > Camel in Action 2: https://www.manning.com/ibsen2 > > > > > > > > > ________________________________ > > > If you reply to this email, your message will be added to the discussion > > > below: > > > https://camel.465427.n5.nabble.com/Camel-3-shutdown-triggered-right-after-start-tp5849922p5849924.html > > > To unsubscribe from Camel, click here. > > > NAML > > > > > > ________________________________ > > If you reply to this email, your message will be added to the discussion > > below: > > https://camel.465427.n5.nabble.com/Camel-3-shutdown-triggered-right-after-start-tp5849922p5849942.html > > To unsubscribe from Camel, click here. > > NAML -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2