Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 45D917AE2 for ; Mon, 10 Oct 2011 08:01:02 +0000 (UTC) Received: (qmail 65300 invoked by uid 500); 10 Oct 2011 08:01:02 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 65246 invoked by uid 500); 10 Oct 2011 08:00:56 -0000 Mailing-List: contact dev-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 dev@camel.apache.org Received: (qmail 64843 invoked by uid 99); 10 Oct 2011 08:00:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2011 08:00:54 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2011 08:00:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 961E0300D60 for ; Mon, 10 Oct 2011 08:00:30 +0000 (UTC) Date: Mon, 10 Oct 2011 08:00:30 +0000 (UTC) From: "Achim Nierbeck (Issue Comment Edited) (JIRA)" To: dev@camel.apache.org Message-ID: <489349019.13967.1318233630616.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <972637630.7698.1317307905639.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Issue Comment Edited] (CAMEL-4503) Recipient List cannot vary destination by changing property in an expression MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CAMEL-4503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13120732#comment-13120732 ] Achim Nierbeck edited comment on CAMEL-4503 at 10/10/11 7:58 AM: ----------------------------------------------------------------- Unfortunately I just realized that the mentioned workaround doesn't work :( I'm investigating why it isn't I'm down to the following right now: answer = endpoints.get(getEndpointKey(uri)); in DefaultCamelContext does give me the wrong Endpoint, at least it's bound to the wrong URI. it's called from endpoint = resolveEndpoint(exchange, recipient); in RecipientListProcessor.createProcessorExchangePairs(...) The following scenario doesn't work right now for the workaround, this might be a different bug though: - Recipient A is resolved the way it should work and can be called - if Recipient B is questioned it also works and can be used. - if Recipient A is questioned from the cache again, Recipient B is provided and therefore the requests end up on the wrong host. I also added a comment to the mailing-list about this. was (Author: achim_nierbeck): Unfortunately I just realized that the mentioned workaround doesn't work :( I'm investigating why it isn't I'm down to the following right now: answer = endpoints.get(getEndpointKey(uri)); in DefaultCamelContext does give me the wrong Endpoint, at least it's bound to the wrong URI. it's called from endpoint = resolveEndpoint(exchange, recipient); in RecipientListProcessor.createProcessorExchangePairs(...) but maybe this is also because it seems to be a singleton, maybe setting it to non-singleton does work :) > Recipient List cannot vary destination by changing property in an expression > ---------------------------------------------------------------------------- > > Key: CAMEL-4503 > URL: https://issues.apache.org/jira/browse/CAMEL-4503 > Project: Camel > Issue Type: Bug > Affects Versions: 2.8.1 > Reporter: Jonathan Anstey > > This is probably due to producers being cached based on unresolved endpoint URI, rather than the resolved endpoint URI. Haven't tested this theory out though. > See message on user list http://markmail.org/message/sdysp6sspq5lomf4 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira