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

Henryk Konsek commented on CAMEL-8532:
--------------------------------------

Hi,

Just add spring-boot-starter-web to your project. It will block the main 
thread. Or camel-boot-starter-remote-shell. I didn't backported CAMEL-8532 
because it is as easy to block the main thread. I personally always add 
spring-boot-starter-web to the app to have a Jolokia endpoint exposed. 

I hope that resolves the issue. :)

Cheers.

> Spring Boot applications should block the main thread of the execution
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-8532
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8532
>             Project: Camel
>          Issue Type: Improvement
>            Reporter: Henryk Konsek
>            Assignee: Henryk Konsek
>             Fix For: 2.16.0
>
>
> Bootified Camel routers are supposed to block the main thread of the 
> application, so even for the empty router folks should be able to just 
> execute `java -jar myapp.jar` and the application will wait for the Ctrl+C.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to