Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 50023 invoked from network); 22 Aug 2010 01:57:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Aug 2010 01:57:35 -0000 Received: (qmail 46298 invoked by uid 500); 22 Aug 2010 01:57:34 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 46244 invoked by uid 500); 22 Aug 2010 01:57:34 -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 46236 invoked by uid 99); 22 Aug 2010 01:57:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Aug 2010 01:57:34 +0000 X-ASF-Spam-Status: No, hits=4.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,SPF_HELO_PASS,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.158 is neither permitted nor denied by domain of senthilkumara20@gmail.com) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Aug 2010 01:57:28 +0000 Received: from sam.nabble.com ([192.168.236.26]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Omzo4-0007Ab-CQ for users@camel.apache.org; Sat, 21 Aug 2010 18:57:08 -0700 Date: Sat, 21 Aug 2010 18:57:08 -0700 (PDT) From: "senthil.arumugam" To: users@camel.apache.org Message-ID: <1282442228367-2643569.post@n5.nabble.com> Subject: Problem with consuming different types of message from same endpoint MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I am trying to consume message from an endpoint defined in my route. The queue to which the consumer is listening, has two different nature of messages. For eg, I have a queue, say "queue:one" which has messages of type Foo and Bar. When the consumer starts listening and on message, I am getting an exception with message like "Unable to convert body from Foo to Bar" I am using camel-spring for all my configuration. My routing in context file is, Thanks in advance. - SK -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-consuming-different-types-of-message-from-same-endpoint-tp2643569p2643569.html Sent from the Camel - Users mailing list archive at Nabble.com.