Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0E0379089 for ; Wed, 28 Mar 2012 18:45:28 +0000 (UTC) Received: (qmail 86441 invoked by uid 500); 28 Mar 2012 18:45:27 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 86410 invoked by uid 500); 28 Mar 2012 18:45:27 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 86402 invoked by uid 99); 28 Mar 2012 18:45:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2012 18:45:27 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of kodcanavari@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2012 18:45:22 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SCxrh-000497-QL for users@camel.apache.org; Wed, 28 Mar 2012 11:45:01 -0700 Date: Wed, 28 Mar 2012 11:45:01 -0700 (PDT) From: "arda.aydin" To: users@camel.apache.org Message-ID: <1332960301809-5601401.post@n5.nabble.com> Subject: Correlated Routes with or without BOM? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I develop a system where a *producer* sends some messages to a *consumer* in 3 ordered asynchronous steps. Step1: this.from("jms:queueProducer") .process(new SomeProcessProcessor()) .to("jms:queueProducerReply"); Step2: this.from("jms:queueProducer") .process(new SomeOtherProcessProcessor()) .to("jms:queueConsumerReply"); Step3: this.from("jms:queueConsumer") .process(new SomeAnotherProcessProcessor()) .to("jms:queueConsumerReply"); I need to correlate three routes with JMSCorrelationId. So after 1st and 2nd process i need to persist the message inside a DB and before 2nd and 3rd i need to load the message from DB. The question is should i write this mechanism manually or i can use one of the database endpoints like BAM? -- View this message in context: http://camel.465427.n5.nabble.com/Correlated-Routes-with-or-without-BOM-tp5601401p5601401.html Sent from the Camel - Users mailing list archive at Nabble.com.