Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 13507 invoked from network); 8 Jun 2008 06:47:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Jun 2008 06:47:07 -0000 Received: (qmail 65868 invoked by uid 500); 8 Jun 2008 06:47:09 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 65842 invoked by uid 500); 8 Jun 2008 06:47:09 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 65828 invoked by uid 99); 8 Jun 2008 06:47:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Jun 2008 23:47:09 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Jun 2008 06:46:19 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1K5Efj-0004vu-OI for dev@activemq.apache.org; Sat, 07 Jun 2008 23:46:35 -0700 Message-ID: <17716112.post@talk.nabble.com> Date: Sat, 7 Jun 2008 23:46:35 -0700 (PDT) From: Richard Gillingham To: dev@activemq.apache.org Subject: Re: Request/ Response Pattern In-Reply-To: <17706032.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: richard@richardgillingham.com References: <17706032.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hello there, Isn't this the wrong pattern?? Have you tried setting up a response queue for each requester and putting it's names in the reply-to field of the JMS message. You wouldn't need to use correlation IDs for message filtering then, just for matching the response to the request. Kind regards Richard NizarK wrote: > > Hi ! > I have a problem with implementing Request /response Pattern with JMS ... > I have one queue on wich many object instances make request/response > operations .. > The problem is how a requester , when retrieving a response from the queue > , can only get from the queue the response with the right CorrelationID > and leave all the others in the queue ... > I Tried with setting ack mode to CLIENT.ACKNOWLEDGE but when i do a > msg.acknowledge() , all the messages consumed in the session are retrieved > and the queue becomes empty ... > Any solutions please ??? > -- View this message in context: http://www.nabble.com/Request--Response-Pattern-tp17706032s2354p17716112.html Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.