Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 47303 invoked from network); 14 May 2009 21:23:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 May 2009 21:23:06 -0000 Received: (qmail 14350 invoked by uid 500); 14 May 2009 21:21:56 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 13859 invoked by uid 500); 14 May 2009 21:21:55 -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 13161 invoked by uid 99); 14 May 2009 21:19:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 May 2009 21:19:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS 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; Thu, 14 May 2009 21:19:15 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1M4iKM-00085a-Hm for users@camel.apache.org; Thu, 14 May 2009 14:18:54 -0700 Message-ID: <23549158.post@talk.nabble.com> Date: Thu, 14 May 2009 14:18:54 -0700 (PDT) From: uprooter To: users@camel.apache.org Subject: Newbie: how to unmarshal and then route using object member value? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: uprooter@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hello everyone, Thank you for this precious project. I'm trying to migrate traditional JMS processing to camel. I need to read from JMS topic and unmarshal to JAXB object. and then route according to an Enum value in that object. (e.g unmarshal XML to Student object and route by student.getGrade()) I also like it if it will be possible to unmarshal only once. I tried starting with something like from("TOPIC").convertBodyTo(Student.class).choice() but I can't figure out how to make the ChoiceDefinition "know" my Student object What should I look for? John. -- View this message in context: http://www.nabble.com/Newbie%3A-how-to-unmarshal-and-then-route-using-object-member-value--tp23549158p23549158.html Sent from the Camel - Users mailing list archive at Nabble.com.