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 6A1BBDCDF for ; Mon, 3 Sep 2012 19:06:56 +0000 (UTC) Received: (qmail 83403 invoked by uid 500); 3 Sep 2012 19:06:55 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 83289 invoked by uid 500); 3 Sep 2012 19:06: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 83278 invoked by uid 99); 3 Sep 2012 19:06:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2012 19:06:55 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_IMAGE_ONLY_32,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christian.mueller@gmail.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qc0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2012 19:06:50 +0000 Received: by qcab12 with SMTP id b12so4581026qca.32 for ; Mon, 03 Sep 2012 12:06:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=LcDuRYWBkq3zhyqHcSlhfuhf4wtVlXHlGzz6ByNAVhk=; b=zZfKv3kDLMMzSdcGCnSRAf7lf1j7qGwIZ+ozR7dnH878UPicDqUnSjekbEoRHVIA1J XXjSVyz3rjDO/Yr7yPsg8mAD1Q2iY+EewpvuecImpl9b/1098y9VHfQos2mX2zFO/jpa 5gGcTiTKPTIh7GYH9+H8FUneXd0Ge5zhgLhTt/8EO5RuGwrueWGFfUXx8vT/tDrHa2/W x/gGxz9pr7lqtW6Evx9PrvEh8mVH3a5z9LkQH+NDZbQrJKFVRWUOXdEyw6lmDDbupXEa f6uHto8NOydOPKgC7ku3AK602K/tTzbadFDFII+nXWNJIbnxV335FRZkm0A3AYgnjuj0 1GiA== MIME-Version: 1.0 Received: by 10.224.180.70 with SMTP id bt6mr36196153qab.91.1346699190052; Mon, 03 Sep 2012 12:06:30 -0700 (PDT) Received: by 10.49.63.9 with HTTP; Mon, 3 Sep 2012 12:06:30 -0700 (PDT) In-Reply-To: <1346653493541-5718525.post@n5.nabble.com> References: <1346653493541-5718525.post@n5.nabble.com> Date: Mon, 3 Sep 2012 21:06:30 +0200 Message-ID: Subject: Re: Camel XML Message Enrichment From: =?ISO-8859-1?Q?Christian_M=FCller?= To: users@camel.apache.org Content-Type: multipart/alternative; boundary=20cf303b3c03d7a92804c8d0d66a X-Virus-Checked: Checked by ClamAV on apache.org --20cf303b3c03d7a92804c8d0d66a Content-Type: text/plain; charset=ISO-8859-1 This is a typical Content Enricher EIP scenario. Have a look at [1]. At [2] you can find some tests which show how to use it. For the Java - XML - Mapping I recommend to have a look at the Camel JAXBDataFormat [3]. If you are new, you should start at [4]. And I really recommend to Camel in Action book [5]. [1] http://camel.apache.org/content-enricher.html [2] https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/enricher/ [3] http://camel.apache.org/jaxb.html [4] http://camel.apache.org/getting-started.html [5] http://www.manning.com/ibsen/ Best, Christian On Mon, Sep 3, 2012 at 8:24 AM, Naveen Raj wrote: > Hi all, > I am new to camel and I am trying a POC for enriching where a data > from sql database is to be inserted into the xml message that is received. > > I would like to use this xml and the input message---> from a file > > > > > Empire Burlesque > Bob Dylan > USA > Columbia > > 1985 > > > > where as the resulting xml that goes to the outbound endpoint should result > like > > > > > Empire Burlesque > Bob Dylan > USA > Columbia > 10.90 > 1985 > > > > the price is taken from the database... > > right now I don't want any logic to take the price from the data base.My > priority is to insert the data in the xml message. > > Thanks, > > Naveen Raj Balasubramaniam > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-XML-Message-Enrichment-tp5718525.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- --20cf303b3c03d7a92804c8d0d66a--