Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 35193 invoked from network); 20 Jan 2011 06:44:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Jan 2011 06:44:33 -0000 Received: (qmail 16725 invoked by uid 500); 20 Jan 2011 06:44:33 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 16573 invoked by uid 500); 20 Jan 2011 06:44:31 -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 16565 invoked by uid 99); 20 Jan 2011 06:44:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jan 2011 06:44:30 +0000 X-ASF-Spam-Status: No, hits=-1.6 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [217.70.178.75] (HELO relay1-v.mail.gandi.net) (217.70.178.75) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jan 2011 06:44:21 +0000 X-Originating-IP: 217.70.178.35 Received: from mfilter1-v.gandi.net (mfilter1-v.gandi.net [217.70.178.35]) by relay1-v.mail.gandi.net (Postfix) with ESMTP id 5A6AD362B8 for ; Thu, 20 Jan 2011 07:43:59 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter1-v.gandi.net Received: from relay1-v.mail.gandi.net ([217.70.178.75]) by mfilter1-v.gandi.net (mfilter1-v.gandi.net [217.70.178.35]) (amavisd-new, port 10024) with ESMTP id iXNzDqWv5QOI for ; Thu, 20 Jan 2011 07:43:57 +0100 (CET) X-Originating-IP: 94.103.140.2 Received: from [192.168.35.75] (hydra.fimasys.com [94.103.140.2]) (Authenticated sender: jb@nanthrax.net) by relay1-v.mail.gandi.net (Postfix) with ESMTPSA id 2D85F362B5 for ; Thu, 20 Jan 2011 07:43:56 +0100 (CET) Message-ID: <4D37D971.2060609@nanthrax.net> Date: Thu, 20 Jan 2011 07:42:57 +0100 From: =?ISO-8859-1?Q?Jean-Baptiste_Onofr=E9?= Reply-To: jb@nanthrax.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20101227 Icedove/3.0.11 MIME-Version: 1.0 To: dev@camel.apache.org Subject: Re: [DISCUSS] - JMSReplyTo to yourself References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Claus, most of the time, we have a REQUEST queue and a RESPONSE queue. I've never seen a response post on the same queue. By default, it makes sense to log a WARN when posting on the same queue. The use of disableReplyTo is too restrictive because the users could use a replyTo to another queue :) Regards JB On 01/20/2011 07:38 AM, Claus Ibsen wrote: > Hi > > Suppose you have a Camel route > > from("activemq:queue:foo") > .process(xxx) > > And a client sends a message to the foo queue with a JMSReplyTo header > set with the queue:foo destination. > The client has essentially told to send a reply back to the same queue > as the message was consumed. > > Currently Camel will happily comply and send a reply message to the > foo queue. Now what could happen is the message will keep doing this. > > Is there any use-cases in the real life where you want to send a reply > message back to the same message queue? > If not we can implement logic to detect this and avoid doing that. > Camel can log a WARN when it has detect this so > end users can notice in the logs if they have such a case. > > We can introduce an option so people can turn this odd behavior on and > allow to send back replies to same queue. > > > The current remedy is to enable this option as follows: > > from("activemq:queue:foo?disableReplyTo=true") > .process(xxx) > > But that's general so if there was a JMSReplyTo header with the > queue:bar then it would be ignored as well. > However sending to a bar queue may be a valid use-case. > > > >