Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 85C04E0DE for ; Sun, 3 Mar 2013 07:31:14 +0000 (UTC) Received: (qmail 36304 invoked by uid 500); 3 Mar 2013 07:31:14 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 36198 invoked by uid 500); 3 Mar 2013 07:31:13 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 36179 invoked by uid 99); 3 Mar 2013 07:31:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Mar 2013 07:31:13 +0000 Date: Sun, 3 Mar 2013 07:31:13 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CAMEL-6105) Make DirectProducer throw a specific exception when it cannot find the corresponding consumer, instead of a generic CamelExchangeException. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-6105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-6105. -------------------------------- Resolution: Fixed Thanks Aaron for the patch. > Make DirectProducer throw a specific exception when it cannot find the corresponding consumer, instead of a generic CamelExchangeException. > ------------------------------------------------------------------------------------------------------------------------------------------- > > Key: CAMEL-6105 > URL: https://issues.apache.org/jira/browse/CAMEL-6105 > Project: Camel > Issue Type: Improvement > Components: camel-core > Affects Versions: 2.10.3 > Reporter: Aaron Whiteside > Assignee: Claus Ibsen > Fix For: 2.10.5, 2.11.0 > > Attachments: direct_consumer_not_available_exception.patch > > > Make DirectProducer throw a specific exception when it cannot find the corresponding consumer, instead of a generic CamelExchangeException. > Our use case is that some routes will be dynamically redeployed at run-time, this is not a problem for routes using jms:xxx and other such endpoints, but for direct:xxx endpoints this poses a problem. > I am asking if we could change DirectProducer to throw a new exception something like NoConsumerAvailableException which extends CamelExchangeException for backwards compatibility. As this would allow us to setup a default re-delivery policy for this specific exception. > I also have a second request, let me know if you want this in a separate jira issue. > Ideally instead of retrying when a direct endpoints consumer disappears temporarily it would be nice if the direct producer would blocked for a configurable duration waiting for a consumer to come, back, into existence. > The default would obviously be not to block, to maintain backwards compatibility. > Something along these lines: > {code} > direct:xxxx?block=true&timeout=5000 > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira