camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john robens <>
Subject groovy and builderRefs
Date Wed, 03 Feb 2010 01:23:57 GMT

 I guess the problem is understanding the 2.1 groovy dsl version of the
spring config. Something changed with builderRefs and shouldStartContext
changed to autoStartup. A pointer to the reference would be great.

Trying to get the camel plugin for grails working with 2.1.

This was the code that works with 2.0:

#1 builderRefs

builderRefs = routeBuilderBeanNames.collect { ref(it) }


nested exception is java.lang.
IllegalStateException: Cannot convert value of type
to required type [org.apache.camel.model.RouteBuilderDefinition] for
property 'builderRefs[0]': no matching editors or conversion strategy found

Which is fair enough, but I can't find a way to cast it.

#2 autoStartup

Original code was :

shouldStartContext = false

I ended up with autoStartup = Boolean.FALSE

Bean property 'autoStartup' is not writable or has an invalid setter
method. Does the parameter type of the setter match the return type of
the getter?

Looks obvious, but I can't seem to get something to work.

Grails 2.1, groovy 1.6.7 that comes with it.


0434 996 607

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message