...
Camel applications extending FatJarRouter by default blocks default block the main thread of the application. It means that after you start your fat jar, your application waits for Ctrl+C signal and doesn't exit immediately. If you would like to achieve similar behavior for non-FatJarRouter
applications, retrieve CamelSpringBootApplicationController
bean from your ApplicationContext
and use the former to block the main thread of your application using CamelSpringBootApplicationController#blockMainThread()
method.
...