Claus

Thankyou very much.

John


On 3 February 2010 22:09, Claus Ibsen <[email protected]> wrote:

> On Wed, Feb 3, 2010 at 10:53 AM, Claus Ibsen <[email protected]>
> wrote:
> > Hi
> >
> > Just wait for the 2.2 release which should be out in 1-2 weeks.
> > Hadrian will build the release today/tomorrow. Then a little voting
> > period and hopefully not blockers found and its released 3 days later.
> >
> >
> > On Wed, Feb 3, 2010 at 2:23 AM, john robens <[email protected]>
> wrote:
> >> Hi
> >>
> >>  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.
> >>
> >
> > Check the release notes about changes, eg you can find about that option
> renamed
> > http://camel.apache.org/camel-210-release.html
> >
> > And you can release the 2.2 in progress also
> > http://camel.apache.org/camel-220-release.html
> >
> >
> > And you can read about controlling startup here
> >
> http://camel.apache.org/configuring-route-startup-ordering-and-autostartup.html
> >
> >
> >
> >> Trying to get the camel plugin for grails working with 2.1.
> >>
> >> This was the code that works with 2.0:
> >>
> >> http://github.com/jrobens/apache-camel
> >> -grails-plugin/blob/master/CamelGrailsPlugin.groovy
> >>
> >>
> >> #1 builderRefs
> >>
> >> builderRefs = routeBuilderBeanNames.collect { ref(it) }
> >>
> >> gives:
> >>
> >> nested exception is java.lang.
> >> IllegalStateException: Cannot convert value of type
> >> [grails.plugins.camel.DefaultGrailsClosureRouteBuilder]
> >> 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?
> >>
> >
> > I guess its the shitty auto boxing in Java.
> > We gotta use Boolean for JAXB to work with it in the setter.
> > And the getter is a boolean.
> >
> > See org.apahce.camel.RuntimeConfiguration
> >
> > Let me see what it takes to make the getter using Boolean as well.
> >
>
> I have created a ticket
> https://issues.apache.org/activemq/browse/CAMEL-2440
>
> And committed a fix which will make it into Camel 2.2. Now all
> getter/setter are of same type.
>
>
>
> >
> >>
> >> Looks obvious, but I can't seem to get something to work.
> >>
> >>
> >>
> >> Grails 2.1, groovy 1.6.7 that comes with it.
> >>
> >>
> >> Thanks
> >> John
> >>
> >>
> >>
> >> --
> >> http://interlated.com.au
> >> 0434 996 607
> >>
> >
> >
> >
> > --
> > Claus Ibsen
> > Apache Camel Committer
> >
> > Author of Camel in Action: http://www.manning.com/ibsen/
> > Open Source Integration: http://fusesource.com
> > Blog: http://davsclaus.blogspot.com/
> > Twitter: http://twitter.com/davsclaus
> >
>
>
>
> --
> Claus Ibsen
> Apache Camel Committer
>
> Author of Camel in Action: http://www.manning.com/ibsen/
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
>



-- 
http://interlated.com.au
0434 996 607

Reply via email to