You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2021/06/03 07:26:00 UTC

[jira] [Commented] (CAMEL-16661) camel-spring-boot - XML example logs Camel is started many times

    [ https://issues.apache.org/jira/browse/CAMEL-16661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17356241#comment-17356241 ] 

Claus Ibsen commented on CAMEL-16661:
-------------------------------------

Okay we end up creating multiple spring camel context object instance which is the real bug due to spring boot emits a refresh even while already creating spring camel context object instance, so a new instance is created,

> camel-spring-boot - XML example logs Camel is started many times
> ----------------------------------------------------------------
>
>                 Key: CAMEL-16661
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16661
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-spring-boot, examples
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 3.11.0
>
>
> 2021-05-26 09:09:47.335  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:1 started:1)
> 2021-05-26 09:09:47.335  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   :     Started hello (timer://hello)
> 2021-05-26 09:09:47.335  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 61ms (build:0ms init:56ms start:5ms)
> 2021-05-26 09:09:47.340  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.340  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 11ms (build:9ms init:2ms start:0ms)
> 2021-05-26 09:09:47.342  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.342  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 3ms (build:1ms init:1ms start:1ms)
> 2021-05-26 09:09:47.343  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.343  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 1ms (build:0ms init:1ms start:0ms)
> 2021-05-26 09:09:47.345  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.345  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 3ms (build:1ms init:1ms start:1ms)
> 2021-05-26 09:09:47.346  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.346  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 1ms (build:0ms init:1ms start:0ms)
> 2021-05-26 09:09:47.348  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.348  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 1ms (build:0ms init:1ms start:0ms)
> 2021-05-26 09:09:47.350  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.350  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 2ms (build:0ms init:1ms start:1ms)
> 2021-05-26 09:09:47.351  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.352  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 2ms (build:0ms init:1ms start:1ms)
> 2021-05-26 09:09:47.353  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.353  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 2ms (build:1ms init:1ms start:0ms)
> 2021-05-26 09:09:47.355  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.355  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 3ms (build:1ms init:2ms start:0ms)
> 2021-05-26 09:09:47.356  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.356  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 2ms (build:1ms init:1ms start:0ms)
> 2021-05-26 09:09:47.358  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.358  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 2ms (build:0ms init:2ms start:0ms)
> 2021-05-26 09:09:47.359  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.359  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 1ms (build:0ms init:1ms start:0ms)
> 2021-05-26 09:09:47.361  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.361  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 2ms (build:1ms init:1ms start:0ms)
> 2021-05-26 09:09:47.363  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.363  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 3ms (build:1ms init:1ms start:1ms)
> 2021-05-26 09:09:47.364  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.364  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 2ms (build:1ms init:1ms start:0ms)
> 2021-05-26 09:09:47.366  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.366  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 3ms (build:1ms init:2ms start:0ms)
> 2021-05-26 09:09:47.367  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.367  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 1ms (build:0ms init:1ms start:0ms)
> 2021-05-26 09:09:47.369  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.369  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 3ms (build:1ms init:2ms start:0ms)
> 2021-05-26 09:09:47.370  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.370  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 2ms (build:1ms init:1ms start:0ms)
> 2021-05-26 09:09:47.372  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.372  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 3ms (build:1ms init:2ms start:0ms)
> 2021-05-26 09:09:47.373  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.373  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 2ms (build:1ms init:1ms start:0ms)
> 2021-05-26 09:09:47.375  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.375  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 3ms (build:1ms init:2ms start:0ms)
> 2021-05-26 09:09:47.376  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.376  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 2ms (build:1ms init:1ms start:0ms)
> 2021-05-26 09:09:47.378  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Routes startup summary (total:0 started:0)
> 2021-05-26 09:09:47.378  INFO 41604 --- [           main] o.a.c.impl.engine.AbstractCamelContext   : Apache Camel 3.11.0-SNAPSHOT (SampleCamel) started in 2ms (build:0ms init:2ms start:0ms)
> 2021-05-26 09:09:47.381  INFO 41604 --- [           main] sample.camel.SampleCamelApplication      : Started SampleCamelApplication in 1.277 seconds (JVM running for 1.468)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)