4 Replies Latest reply on Oct 28, 2011 9:49 AM by Jochen Lauer

    How to enable groovy function in Java DSL ?

    Jochen Lauer Apprentice

      Hello together,


      I deployed a camel route as war file and I want to extend my route using groovy.


      I added




      to my maven pom and tried the example mentioned in the camel-groovy documentation


      from("queue:foo").filter(groovy("request.lineItems.any { i -> i.value > 100 }")).to("queue:bar")


      but the groovy function is not available. This causes a compile error in eclipse IDE.


      How can I enable the groovy function ?