Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 64140 invoked from network); 23 Oct 2008 07:50:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Oct 2008 07:50:37 -0000 Received: (qmail 59264 invoked by uid 500); 23 Oct 2008 07:50:39 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 59246 invoked by uid 500); 23 Oct 2008 07:50:39 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 59235 invoked by uid 99); 23 Oct 2008 07:50:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Oct 2008 00:50:39 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of willem.jiang@gmail.com designates 209.85.142.191 as permitted sender) Received: from [209.85.142.191] (HELO ti-out-0910.google.com) (209.85.142.191) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Oct 2008 07:49:29 +0000 Received: by ti-out-0910.google.com with SMTP id a20so113396tia.0 for ; Thu, 23 Oct 2008 00:49:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=V6CFElv46M6ytompxnaur+wgMrJWbU0pXxo9uSzDRNQ=; b=oH6TIddq84DCl7yJpMU7S2YQzK5VJGD/licHvxbE56oKhvtNaKIHsMJYZwCaRhHWbr XCFbkeDDuLtOWKJcUBzDVH1Qe1sGcvw9/fE72fI9baAMU/TAtMjGOQ7L1rVhthV2svkh PM37BiVvAQS3jJCOGl2Jyiy+nylgm0YamFxwo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=j+vY4gEhygppgtgRg3sI3l6SOI9tZ33RI5v9FPXPaHbwVtx3Y9iV2zXWUpB+R1pdjG /WbtH39fLZySC2QQjyTdgiwXTuHxvhZZAOz3TFZNFSm+FDtp+g9WGjbA9wngbe19r1nv S77OD3RR/OSPcdypRKibNvH25GeL/6pyViUQ8= Received: by 10.110.49.2 with SMTP id w2mr194186tiw.56.1224748197075; Thu, 23 Oct 2008 00:49:57 -0700 (PDT) Received: from ?192.168.0.118? ([221.223.251.100]) by mx.google.com with ESMTPS id d1sm3192232tid.13.2008.10.23.00.49.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 23 Oct 2008 00:49:55 -0700 (PDT) Message-ID: <49002C99.6070501@gmail.com> Date: Thu, 23 Oct 2008 15:49:45 +0800 From: Willem Jiang User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: camel-user@activemq.apache.org Subject: Re: Correlation of request and response References: <20118949.post@talk.nabble.com> In-Reply-To: <20118949.post@talk.nabble.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org If we are using InOut Exchanage pattern when sending the message, we can get the response message easily. Here is an Example[1] https://svn.apache.org/repos/asf/activemq/camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/issues/JmsInOutPipelineWithBeanTest.java Willem Erik Martino Hansen wrote: > Given the loan broker example > > http://activemq.apache.org/camel/loan-broker-example.html > > What would it take to correlate the messages in loanRequestQueue and the > loanResponseQueue so that it could be wrapped in a single method call that > waits on the response. > > Where can I find a good example of that.