Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 93950 invoked from network); 3 Feb 2010 12:23:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Feb 2010 12:23:41 -0000 Received: (qmail 5373 invoked by uid 500); 3 Feb 2010 12:23:41 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 5312 invoked by uid 500); 3 Feb 2010 12:23:41 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 5302 invoked by uid 99); 3 Feb 2010 12:23:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Feb 2010 12:23:41 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.218.211 as permitted sender) Received: from [209.85.218.211] (HELO mail-bw0-f211.google.com) (209.85.218.211) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Feb 2010 12:23:29 +0000 Received: by bwz3 with SMTP id 3so1057767bwz.33 for ; Wed, 03 Feb 2010 04:23:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=Y34MihJ8Fpp/Xg7z3+T0HN3RMOIpFjISBS9HNHZNzFA=; b=GyyxiNnz9awgCpq9ZM+IoFUu5ko4RwYUzLkcv/S72EUQQleRz98CPvSHvEqC057RTQ T7Zcn58pjAfmIs+Ee9CDK+cdSpGQNDLziMPJiXUnX54KEedhrSpduXADAtomxHhTMO0M DJJJ6jsx80wUWAIvi+qy5z+G4fb+HwfqGSHWw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=tt0AaCeumHQ2EkX3tVHgY8JSwtg6URLrwnGVKHXm4JqZ+/Ennt9gK5myEv0AtD9Pju wXhmx0bfQj2coaSjwyPOryDp6eJsj0pOAP9rQQPblYUHJuK4Z+9D3M6eszTLv8e2hZZ4 5Csdznpu01yY1WHl4J0f8q37a4c7kydW6zr8k= MIME-Version: 1.0 Received: by 10.204.6.213 with SMTP id a21mr3964417bka.16.1265199789163; Wed, 03 Feb 2010 04:23:09 -0800 (PST) In-Reply-To: <8187c2ee1002030316v18bc1857jb478f601fd45ba86@mail.gmail.com> References: <8187c2ee1002021723t22b66e96nace97d840a9b4b0f@mail.gmail.com> <5380c69c1002030153x7fb0e38dp61025aefc2c409c7@mail.gmail.com> <5380c69c1002030309j542a4cc4sc2a44e55d2156023@mail.gmail.com> <8187c2ee1002030316v18bc1857jb478f601fd45ba86@mail.gmail.com> From: Claus Ibsen Date: Wed, 3 Feb 2010 13:22:49 +0100 Message-ID: <5380c69c1002030422l2ea05767qf7adf5f7ad90c137@mail.gmail.com> Subject: Re: groovy and builderRefs To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Feb 3, 2010 at 12:16 PM, john robens wr= ote: > Claus > > Thankyou very much. You are welcome. Looking forward for the camel-grails plugin to work with 2= .2 :) > > John > > > On 3 February 2010 22:09, Claus Ibsen wrote: > >> On Wed, Feb 3, 2010 at 10:53 AM, Claus Ibsen >> 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 >> wrote: >> >> Hi >> >> >> >> =A0I guess the problem is understanding the 2.1 groovy dsl version of= the >> >> spring config. Something changed with builderRefs and shouldStartCont= ext >> >> changed to autoStartup. A pointer to the reference would be great. >> >> >> > >> > Check the release notes about changes, eg you can find about that opti= on >> 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-autostart= up.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 =3D 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 =3D false >> >> >> >> I ended up with autoStartup =3D 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 o= f >> >> 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 > --=20 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