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 31BEECB6F for ; Thu, 4 Dec 2014 13:58:55 +0000 (UTC) Received: (qmail 35466 invoked by uid 500); 4 Dec 2014 13:58:54 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 35419 invoked by uid 500); 4 Dec 2014 13:58:54 -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 35398 invoked by uid 99); 4 Dec 2014 13:58:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Dec 2014 13:58:53 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.227.126.187] (HELO mout.kundenserver.de) (212.227.126.187) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Dec 2014 13:58:46 +0000 Received: from JanmySN ([77.10.35.238]) by mrelayeu.kundenserver.de (mreue004) with ESMTPSA (Nemesis) id 0Md090-1YEc003tdC-00IF1B for ; Thu, 04 Dec 2014 14:58:03 +0100 From: =?iso-8859-1?Q?Jan_Mat=E8rne_=28jhm=29?= To: References: <1417675108963-5760111.post@n5.nabble.com> In-Reply-To: <1417675108963-5760111.post@n5.nabble.com> Subject: AW: Camel - Array Date: Thu, 4 Dec 2014 14:57:39 +0100 Message-ID: <004301d00fca$4503ed00$cf0bc700$@de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdAPwnXor9DVzCnnTY6u2Ppl0uF8TQABzyUg Content-Language: de X-Provags-ID: V03:K0:CBM7xvdVlzTdGf2V4Q0m9rIkj0SD+u1tCgFh/jHvCGCAoLNMXQV vCysAspVfaHjwP3DegEbw6A7N3n4wCtd5kVrSsfSyzJGJWW9+jPPk9ACwB4wmXyJdjrK7tP qc7VgmaGqymCu34IhrT0jp1hOkY0BzTXE6HAk6RVTxD1nNHwR08SJXDzdW4xIMmBtwOvoIo 7LqkDIgcWqK7fGCEeFj0w== X-UI-Out-Filterresults: notjunk:1; X-Virus-Checked: Checked by ClamAV on apache.org > .setHeader("size",simple("${body.length}")) > > With below router, i am able to store the length of array in size. > But how we can get the element from the array. ${body.length} reflects the length field of the Array. So I would try ${body[0]} ... Or transform it to a list, then simple-language is more powerful. https://camel.apache.org/simple.html Jan