I found it, the spring camel context factory was set up with autostart
false. Then starting the context manually after application start did not
start the routes anymore.

Thank you for your help!

Kai
 On Apr 11, 2015 2:18 AM, "Claus Ibsen-2 [via Camel]" <
[email protected]> wrote:

> On Fri, Apr 10, 2015 at 3:45 PM, Christian Ohr <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5765602&i=0>> wrote:
>
> > It says:
> >  "Setting autoStartup to false, and starting a CamelContext the 2nd time
> > now does not start the routes, instead use the new startAllRoutes method
> on
> > CamelContext to start all the routes."
> >
> > But the routes neither start when manually starting up a
> SpringCamelContext
> > the 1st time....
> > It also seems generally counterintuitive to me, that starting the
> > CamelContext does not start its routes... But probably there's a good
> > reason to it that I just haven't conceived yet :-)
> >
>
> Well somewhere someone has told camel to not start the routes. Can you
> double check that some code / config or whatever dont trigger a
> autoStartup=false somewhere.
>
> > Christian
> >
> >
> > 2015-04-10 13:47 GMT+02:00 Claus Ibsen <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5765602&i=1>>:
> >
> >> Hi
> >>
> >> See also release notes in the bottom of
> >> http://camel.apache.org/camel-2140-release.html
> >>
> >> On Fri, Apr 10, 2015 at 1:46 PM, Claus Ibsen <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5765602&i=2>>
> >> wrote:
> >> > Hi
> >> >
> >> > If you set camel to autoStartup=false, then use the startAllRoutes
> >> > method to start these routes manually when you want to start them
> >> > later on.
> >> >
> >> > On Fri, Apr 10, 2015 at 11:31 AM, Christian Ohr <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5765602&i=3>>
> >> wrote:
> >> >> I also noticed this problem after an upgrade - explicitly starting a
> >> >> SpringCamelContext (with autoStartup set to false) does not startup
> the
> >> >> routes.
> >> >>
> >> >> I digged into DefaultCamelContext and suspect that it originates
> from
> >> >> fixing CAMEL-7714 (SHA-1: 86b37fe3a55a38b48d811d930b81aa4aca3bb41e
> on
> >> >> trunk) where the method doStartOrResumeRouteConsumers() checks
> whether
> >> to
> >> >> startup a route by calling
> >> >>
> >> >> boolean autoStartup =
> >> routeService.getRouteDefinition().isAutoStartup(this)
> >> >> && this.isAutoStartup();
> >> >>
> >> >> The "&& this.isAutoStartup()" was added, and from there on obviously
> the
> >> >> routes do not start anymore when the context is not autostartable.
> This
> >> >> should be effective as of Camel  2.12.5
> >> >> <https://issues.apache.org/jira/browse/CAMEL/fixforversion/12327166>,
>
> >> 2.13.3
> >> >> <https://issues.apache.org/jira/browse/CAMEL/fixforversion/12327165>,
>
> >> 2.14.0
> >> >> <https://issues.apache.org/jira/browse/CAMEL/fixforversion/12326054>
> .
> >> >>
> >> >> cheers
> >> >> Christian
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> 2015-04-10 7:06 GMT+02:00 Claus Ibsen <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5765602&i=4>>:
> >> >>
> >> >>> You can check the git commits between 2.13.2 -> 2.13.3 and see if
> >> >>> anything stands out.
> >> >>>
> >> >>> Search the web for tutorials on
> >> >>> - how to check git commits between two tags
> >> >>>
> >> >>> And the source is at
> >> >>> - https://github.com/apache/camel
> >> >>>
> >> >>> On Fri, Apr 10, 2015 at 5:43 AM, SchlauFuchs <
> >> [hidden email] <http:///user/SendEmail.jtp?type=node&node=5765602&i=5>>
>
> >> >>> wrote:
> >> >>> > Ok, I did some narrowing. The last version that worked with my
> >> >>> configuration
> >> >>> > is 2.13.2 - it must have been changed with release 2.13.3.
> >> >>> >
> >> >>> > Do you know what has been changed?
> >> >>> >
> >> >>> >
> >> >>> >
> >> >>> > --
> >> >>> > View this message in context:
> >> >>>
> >>
> http://camel.465427.n5.nabble.com/migrating-from-Camel-2-13-1-to-2-15-1-suddenly-all-routes-not-starting-tp5765551p5765555.html
> >> >>> > Sent from the Camel - Users mailing list archive at Nabble.com.
> >> >>>
> >> >>>
> >> >>>
> >> >>> --
> >> >>> Claus Ibsen
> >> >>> -----------------
> >> >>> Red Hat, Inc.
> >> >>> Email: [hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5765602&i=6>
> >> >>> Twitter: davsclaus
> >> >>> Blog: http://davsclaus.com
> >> >>> Author of Camel in Action: http://www.manning.com/ibsen
> >> >>> hawtio: http://hawt.io/
> >> >>> fabric8: http://fabric8.io/
> >> >>>
> >> >
> >> >
> >> >
> >> > --
> >> > Claus Ibsen
> >> > -----------------
> >> > Red Hat, Inc.
> >> > Email: [hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5765602&i=7>
> >> > Twitter: davsclaus
> >> > Blog: http://davsclaus.com
> >> > Author of Camel in Action: http://www.manning.com/ibsen
> >> > hawtio: http://hawt.io/
> >> > fabric8: http://fabric8.io/
> >>
> >>
> >>
> >> --
> >> Claus Ibsen
> >> -----------------
> >> Red Hat, Inc.
> >> Email: [hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5765602&i=8>
> >> Twitter: davsclaus
> >> Blog: http://davsclaus.com
> >> Author of Camel in Action: http://www.manning.com/ibsen
> >> hawtio: http://hawt.io/
> >> fabric8: http://fabric8.io/
> >>
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: [hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5765602&i=9>
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
> hawtio: http://hawt.io/
> fabric8: http://fabric8.io/
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/migrating-from-Camel-2-13-1-to-2-15-1-suddenly-all-routes-not-starting-tp5765551p5765602.html
>  To unsubscribe from migrating from Camel 2.13.1 to 2.15.1 - suddenly all
> routes not starting, click here
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5765551&code=a2FpLmhhY2tlbWVzc2VyQGdtYWlsLmNvbXw1NzY1NTUxfC0xOTcxODMyMzg3>
> .
> NAML
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://camel.465427.n5.nabble.com/migrating-from-Camel-2-13-1-to-2-15-1-suddenly-all-routes-not-starting-tp5765551p5765613.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to