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 4984DD326 for ; Fri, 17 Aug 2012 03:22:06 +0000 (UTC) Received: (qmail 48472 invoked by uid 500); 17 Aug 2012 03:22:05 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 48420 invoked by uid 500); 17 Aug 2012 03:22:05 -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 Delivered-To: moderator for users@camel.apache.org Received: (qmail 83669 invoked by uid 99); 16 Aug 2012 19:32:13 -0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,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 devgosain88@gmail.com) Date: Thu, 16 Aug 2012 12:31:47 -0700 (PDT) From: devgosain To: users@camel.apache.org Message-ID: <1345145507909-5717563.post@n5.nabble.com> Subject: Routing the message to dynamic queue 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 friends, I am a new camel user, I want to write a camel configuration (version 2.0) to achieve the following (1) Receive an xml message from a queue (say "firstqueue") (2)Redirect the xml message to a new queue which will be created dynamically on the basis of the xml header value. Example : xml message has a header "RedirectDestination" with value "secondqueue", so a new queue named "secondqueue" should be created and the xml message should be redirected to this new dynamic queue. firstqueue-->listen-->getmessage-->readValueOfHeader-->redirectXmlToNewQueue Thanks -- View this message in context: http://camel.465427.n5.nabble.com/Routing-the-message-to-dynamic-queue-tp5717563.html Sent from the Camel - Users mailing list archive at Nabble.com.