2 Replies Latest reply: Aug 13, 2012 1:28 AM by Claus Ibsen RSS

    Using OGNL in camel

    Lekan Omotayo Expert

      Hi all,

       

      I was wondering if it will be possible to access the property of an object. The name of the property is known at run time but the object instance is not.

       

      Is there any shorthand that I can use to access this property e.g.

       

      public void getRemoteHostRoute(@OGNL("request.body.{unknown-object}.RouteId") String routeIdOgnl2)

      {

      .......

      }

       

      Also, I am wondering if it it possible to suppress OGNL exception if the property of that object is not present.

       

      Thanks.