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

Claus Ibsen commented on CAMEL-12022:
-------------------------------------

Yeah it starts to make more sense to have it blocking with timeout by default - 
that mitigates any slim chance during startup and with those no consumers 
exceptions.

Doing this only during startup is what this ticket was about, but it could make 
sense to keep this behaviour at runtime as well to make it similar.

In the odd chance someone uses the old behaviors then they can set block=false 
to use old way.

> direct component - Let the producer able to block and wait for consumers to 
> be started
> --------------------------------------------------------------------------------------
>
>                 Key: CAMEL-12022
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12022
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>             Fix For: 2.21.0
>
>
> Similar to what direct-vm component can do. We should let the direct producer 
> detect that if there is no consumer yet, then it can wait until its ready 
> (with timeout) during starting routes. 
> This can avoid the slim chance during route startup that you get a 
> DirectConsumerNotAvailableException



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to