camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Anderson <>
Subject Delaying start of Endpoint's Producer
Date Wed, 30 May 2012 12:38:07 GMT
I have a Producer attached to an Endpoint which takes some time to
initialise.  Currently there is a bug that the Producer.produce()
method can be passed messages while the Endpoint is still

Would a correct solution to this be:
a) block inside Producer.produce() until the endpoint is initialised
b) throw an Exception in Producer.produce() if the endpoint is not initialised
c) block inside Endpoint.createProducer() until the endpoint is initialised
d) something else

Thanks for any answers or thoughts.


View raw message