[ https://issues.apache.org/jira/browse/CAMEL-12022?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16270713#comment-16270713 ]
Claus Ibsen commented on CAMEL-12022: ------------------------------------- So we have the logic already, it can be as simple as turning on block by default, then it will also block during startup and runtime, which is a bit safter than failing with a no consumer exception. > 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)