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

    How to enable groovy function in Java DSL ?

    labo32_delaboe

      Hello together,

       

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

       

      I added

       

      <dependency>
        <groupId>org.apache.camel</groupId>
        <artifactId>camel-script</artifactId>
        <version>2.8.2</version>
      </dependency>
      

       

      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 ?

       

      Thanks

      labo