Hello Hubertus, please have a look at: - https://issues.apache.org/jira/browse/CAMEL-9720 - https://github.com/apache/camel/commit/28c83d58db7c50be9aecbcd81b45af5004bcb304
Let us know if it works. --- Luca Burgazzoli On Tue, Apr 19, 2016 at 3:25 PM, Hubertus.Willuhn <hubertus.will...@dinsoftware.de> wrote: > Hello, > > since the latest update of Camel to Version 2.17 (which I am trying to > migrate my Application to) > the hangup support for the SpringBootApplicationController was removed from > Camel. > > This ticket refer to that: https://issues.apache.org/jira/browse/CAMEL-9330 > <https://issues.apache.org/jira/browse/CAMEL-9330> > > So this is nice and all, but to me that does not look like an improvement > because the line: > > mainSupport.enableHangupSupport(); > > was removed from the > org/apache/camel/spring/boot/CamelSpringBootApplicationController.java in > the function blockMainThread()! > > Now how i am supposed to block my app and keep it running? > Any advices? > > Until now i do the following in my "public static void main(String[] args)": > > SpringApplication app = new SpringApplication(CamelApp.class); > > app.setWebEnvironment(false); > > log.info("Finish application by pressing Ctrl + C"); > > ApplicationContext ctx = app.run(args); > > CamelSpringBootApplicationController appController = > ctx.getBean(CamelSpringBootApplicationController.class); > appController.blockMainThread(); > > Thanks in advanced! > > Best regards, > > Hubertus > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Spring-Boot-and-Camel-2-17-HangupSupport-Removed-tp5781339.html > Sent from the Camel - Users mailing list archive at Nabble.com.