Hi Willem,
Sorry about the delayed response
Groovy Version: 2.1.3 JVM: 1.7.0_11 Vendor: Oracle Corporation OS: Linux
Also, i get following warning.
WARNING: Module [camel-groovy] - Unable to load extension class [class
org.apache.camel.groovy.extend.CamelGroovyMethods] due to
[org/apache
Which version JDK are you using?
--
Willem Jiang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/)
(English)
http://jnn.iteye.com (http://jnn.javaeye.com/) (
update..
I get following warning when starting camel...
WARNING: Module [camel-groovy] - Unable to load extension class [class
org.apach
e.camel.groovy.extend.CamelGroovyMethods] due to
[org/apache/camel/Expression].
Maybe this module is not supported by your JVM version.
regards
Hi Claus,
Sorry about the delayed response
I tried, adding "{Exchange it -> .}" but didn't worked.
.process ({ Exchange it -> println "in processor: ${it.in.body}"
it.out.body = it.in.body.toUpperCase()
} )
following works...
.process ({ Excha
Hi
Yeah wonder why it cannot infer it as Exchange?
You can take a peak at the unit tests of camel-groovy to see some examples
https://github.com/apache/camel/tree/master/components/camel-groovy
And the docs for groovy dsl is here
https://camel.apache.org/groovy-dsl.html
Though you can try with
Thanks Claus, that fixed it.but have another problem
now, I changed route as follows and I get exception for .process closure
class MyRouteBuilder extends org.apache.camel.builder.RouteBuilder {
void configure() {
from("direct://foo")
.to("log://camelLogger?level=INFO")
.proces
Hi
Try with
ctx.getProperties().put(Exchange.LOG_DEBUG_BODY_STREAMS, "true");
On Thu, Jul 18, 2013 at 7:07 AM, vinay wrote:
> Hi All,
>
> I am new to camel, here is what I am trying and is giving me exception.
>
> $groovy -v
> Groovy Version: 2.1.3 JVM: 1.7.0_11 Vendor: Oracle Corporation O
Hi All,
I am new to camel, here is what I am trying and is giving me exception.
$groovy -v
Groovy Version: 2.1.3 JVM: 1.7.0_11 Vendor: Oracle Corporation OS: Linux
$groovy CallCallista1.groovy
give following exception...
[main] INFO camelLogger - Exchange[ExchangePattern:InOut,