Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 196F19A45 for ; Sat, 2 Jun 2012 07:14:54 +0000 (UTC) Received: (qmail 54438 invoked by uid 500); 2 Jun 2012 07:14:53 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 54404 invoked by uid 500); 2 Jun 2012 07:14:53 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Delivered-To: moderator for users@camel.apache.org Received: (qmail 47263 invoked by uid 99); 30 May 2012 12:38:34 -0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alexanderandersonofandover@gmail.com designates 209.85.214.173 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=e8wQhtV6+EQpHDE0K8lZQcFBu1RGAUxlGPyX5uAE9uQ=; b=FlHzjJp2+G2sa1qvt256P+3ExOPepN1n2bo8NWZdDCa3eQRfwAgoNLo8/yh5s3r9cf HrxeG1Et5yXK5ya4fvxOSurYIGdFlVXT3AYfpDfqMmOiiwuuFrhXu2mqAglJafUPkT7r kTYJif28AcXWCITmlSOggbn/qsZFq/V/BytB+bj5ZLKC2kMbWSqcSMUN+58Pgalu6V+p 7rH0W/EbfBq7gLutVmAYQMeJ35pvf2fuP+tazfETpzWOl9qfKH9mA8xIN4qWeJ0TbyEE aY4jToH6/VBU+aLQsBv8NrksLc7eKXIcS+iDGTEvY0UKhVb+Kz1WG6cxr8FJi2OjQr3Z izbQ== MIME-Version: 1.0 Date: Wed, 30 May 2012 15:38:07 +0300 Message-ID: Subject: Delaying start of Endpoint's Producer From: Alex Anderson To: users@camel.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org 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 initialising. 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. Alex