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 13FAF960C for ; Mon, 4 Jun 2012 08:20:26 +0000 (UTC) Received: (qmail 79039 invoked by uid 500); 4 Jun 2012 08:20:25 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 78971 invoked by uid 500); 4 Jun 2012 08:20:25 -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 78919 invoked by uid 99); 4 Jun 2012 08:20:24 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2012 08:20:24 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 9C2C91402B8 for ; Mon, 4 Jun 2012 08:20:24 +0000 (UTC) Date: Mon, 4 Jun 2012 08:20:24 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: <773015518.33015.1338798024642.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1182017069.3425.1337970623405.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Resolved] (CAMEL-5309) Replies with Incorrect CorrelationIDs Received After Reinstantiating a Route with ActiveMQ Endpoint and Exclusive Reply Queue 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-5309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-5309. -------------------------------- Resolution: Fixed Fix Version/s: 2.10.0 2.9.3 > Replies with Incorrect CorrelationIDs Received After Reinstantiating a Route with ActiveMQ Endpoint and Exclusive Reply Queue > ----------------------------------------------------------------------------------------------------------------------------- > > Key: CAMEL-5309 > URL: https://issues.apache.org/jira/browse/CAMEL-5309 > Project: Camel > Issue Type: Bug > Components: camel-activemq, camel-jms > Affects Versions: 2.9.2 > Environment: Java 1.6, ActiveMQ 5.6-SNAPSHOT (used in-memory within a Spring application) > Reporter: Vladimir Tsvetkov > Assignee: Claus Ibsen > Fix For: 2.9.3, 2.10.0 > > > When I first instantiate the following route, it works as expected. The Replies that come have the right correlation ids, just as Camel has assigned them. > {code} > from("direct:fetchStateStart") > .setExchangePattern(ExchangePattern.InOut) > .to("activemq:queue:tasksQueue?replyTo=completionsQueue" + > "&replyToType=Exclusive" + > "&requestTimeout=" + FETCH_INDEX_TIMEOUT) > .threads(10) > .routeId("route-001"); > {code} > When this route completes, it is stopped and removed from the camel context. > When a similar route is instantiated: > {code} > from("direct:processStateStart") > .setExchangePattern(ExchangePattern.InOut) > .to("activemq:queue:tasksQueue?replyTo=completionsQueue" + > "&replyToType=Exclusive" + > "&requestTimeout=" + PROCESS_INDEX_TIMEOUT) > .threads(10) > .routeId("route-002"); > {code} > Half of the replies come as expected, while the other half results in the following warning: *Reply received for unknown correlationID*. > A workaround for this issues is to use a different *ReplyTo*-queue for each new instantiation of a similar route. > E.g. for the second route, it'll work if: > {code} > from("direct:processStateStart") > .setExchangePattern(ExchangePattern.InOut) > .to("activemq:queue:tasksQueue?replyTo=processedIndecesQueue" + > "&replyToType=Exclusive" + > "&requestTimeout=" + PROCESS_INDEX_TIMEOUT) > .threads(10) > .routeId("route-002"); > {code} -- 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