In my patch MQTTEndpoint doesn’t start the connection until the first Customer or the first Producer is started.
We just share the connection throw the MQTTEndpoint. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On October 17, 2014 at 7:54:54 PM, ddewaele (ddewa...@gmail.com) wrote: > Just had a quick look at the commit, but won't we still have the issue that > the endpoint will be creating the connection to the broker (and as a result > messages will start flowing). > By the time the first consumer will be added messages will be lost. > > (Camel always needs to start the endpoint first before adding consumers / > producers) > > - The problem is not that the endpoint is not connected by the time > consumers are added. > - The problem is that the endpoint is already connected *before* consumers > are added. > > Shouldn't it be the responsibility of the consumer / producer of the > endpoint to create the connection ? > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-Endpoint-Consumer-startup-tp5757635p5757725.html > > Sent from the Camel - Users mailing list archive at Nabble.com. >