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 B5A6A98D3 for ; Tue, 7 Aug 2012 09:25:33 +0000 (UTC) Received: (qmail 45038 invoked by uid 500); 7 Aug 2012 09:25:33 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 44610 invoked by uid 500); 7 Aug 2012 09:25:28 -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 44560 invoked by uid 99); 7 Aug 2012 09:25:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2012 09:25:26 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of hekonsek@gmail.com designates 209.85.160.173 as permitted sender) Received: from [209.85.160.173] (HELO mail-gh0-f173.google.com) (209.85.160.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2012 09:25:20 +0000 Received: by ghrr17 with SMTP id r17so2094160ghr.32 for ; Tue, 07 Aug 2012 02:25:00 -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=75pRYTnmKJYbY/ftcxYA7snDcR2Sge6oRR9mfVXYUiE=; b=wCp8E7QkAjbzX3+IVuKyq55b5qiqn3PfW5ADocmYx+NxFzuHzr3sCE+LGW73gf8RU2 ShPVZTc+/KlAdRe0s1LeIvylrta7yMEpgRQKt4RmkfdeCAme94NcqpyeTkZsZnBzB66V 4Mey/FDqOUMyewI9jrOzwMkPAqLDualboOyypQP9uo0ZLEl0TnJOl2KNjWIp2dufA2U1 ikFLzHIySjFr5/FCj9nvjk2NdZf5LX3E+3QPdXmR8KLjn0EHJvQfxPgFpvpELHM3BOm4 vBVeTaFH6tpBJU94Rvk+2uuD4uGOtRilV7ffvLLgX3M/OozU4QyjzHUWeKZBIOmaAeil bdqA== MIME-Version: 1.0 Received: by 10.50.158.163 with SMTP id wv3mr7976755igb.24.1344331499518; Tue, 07 Aug 2012 02:24:59 -0700 (PDT) Received: by 10.64.17.202 with HTTP; Tue, 7 Aug 2012 02:24:59 -0700 (PDT) In-Reply-To: <1344280474504-5716883.post@n5.nabble.com> References: <1344280474504-5716883.post@n5.nabble.com> Date: Tue, 7 Aug 2012 11:24:59 +0200 Message-ID: Subject: Re: Access to LDAP search results From: Henryk Konsek To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi Lars, > The result from an LDAP search (using camel-ldap) is of type > ArrayList. Is it possible to "explore" > the result, without using Java, e.g. access via "simple" or some other > script language? My Camel snippet-language of choice is Groovy [1]. For example to read the size of the first returned results: from("ldap://...").transform().groovy("request.body[0].attributes.size()").to("mock:test") [1] http://camel.apache.org/groovy.html -- Henryk Konsek http://henryk-konsek.blogspot.com