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 DBD6A10AD7 for ; Fri, 20 Sep 2013 05:56:06 +0000 (UTC) Received: (qmail 51927 invoked by uid 500); 20 Sep 2013 05:56:05 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 51903 invoked by uid 500); 20 Sep 2013 05:56:03 -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 51893 invoked by uid 99); 20 Sep 2013 05:56:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Sep 2013 05:56:02 +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 claus.ibsen@gmail.com designates 209.85.223.177 as permitted sender) Received: from [209.85.223.177] (HELO mail-ie0-f177.google.com) (209.85.223.177) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Sep 2013 05:55:58 +0000 Received: by mail-ie0-f177.google.com with SMTP id qd12so16923990ieb.22 for ; Thu, 19 Sep 2013 22:55:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=zoVPpO038crJijKXHZxjENyjwEWtF11nY4FN2zVxgJg=; b=rR40wc3893Lah7UueyYyHSrqrJlB7+6g7cIB7pNLQxi7ZZ3AN4I3NykbRtedOhkr5t TOnd4/sN+APK2zQDB6J/n5QF6mjMib1Ouc1FWX9NwAdyKNtAEkDRl2OdD4KEZSCYJ1Yg iX6oL0km8EFAo9I0i/IAZ1ocqUhWIEpbML5/zL+Xj4OgepJw/ZDE7kvHiw/QKoaXg/Uf JTL+ky7xiaLQjW4cJ9pvsRoM9VX9HHp8iNU1GINQsLsNlTq7JOJaqlUgLrzMUjuGVXEA UdRJIPTCKZTMynUvCCAmapgOg+2oVs6xqW0XXYTlsS1JXIf3UCLFcCkrdllplel+s+Mi 1WYA== X-Received: by 10.50.77.72 with SMTP id q8mr1380199igw.14.1379656537997; Thu, 19 Sep 2013 22:55:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.19.4 with HTTP; Thu, 19 Sep 2013 22:55:17 -0700 (PDT) In-Reply-To: References: From: Claus Ibsen Date: Fri, 20 Sep 2013 07:55:17 +0200 Message-ID: Subject: Re: OGNL property syntax in documentation does not work To: "users@camel.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi You can help improve the docs. See http://camel.apache.org/contributing.html On Fri, Sep 20, 2013 at 12:57 AM, Dale King wrote: > In the documentation for the Camel OGNL component it shows the following > syntax: > > property(name) Object the property by the given name property(name, type) the > property by the given name as the given type > This syntax does not actually work in camel and I do not see any tests that > tried to test that it worked. > > If you change those to getProperty they work. properties[name] also works. > > In OGNL 4, which has not been released yet, property[name] should work. > -- > Dale King -- Claus Ibsen ----------------- Red Hat, Inc. Email: cibsen@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen