My Spring Boot application is not a web server, but it\'s a server using custom protocol (using Camel in this case).
But Spring Boot immediately stops (gracefully) a
Spring Boot leaves the task of running the application to the protocol around which the application is implemented. See, for example, this guide:
Also required are some housekeeping objects like a
CountDownLatchto keep the main thread alive...
So the way of running a Camel service, for example, would to be to run Camel as a standalone application from your main Spring Boot application class.