Archive for the ‘Grails’ Category

Using an External Configuration in Grails

Tuesday, February 9th, 2010

By default, Grails configuration information is stored in grails-app/config/Config.groovy and contains various settings, including the configuration for logging. While this is convenient, it has caused me concern when deploying applications since Config.groovy will get compiled and placed in the war file. True, you can have different settings based on the environment (development, production, etc.), but often I can not predict what the production environment might be. Perhaps I need to tweak the logger level in production after it has been deployed. Maybe the database needs to be moved to a different server.

External configuration files allow you to make these changes without having to redeploy the war file.
(more…)

MissingMethodException: No signature of method for Grails Dynamic Method

Monday, May 25th, 2009

In my last post, I described how you can use resources.groovy to create and initialize a class. However, you can get into trouble if the initMethod will access any of the dynamic methods that Grails introduces. If you are not careful, you may get an Exception like the following:

groovy.lang.MissingMethodException: No signature of method: static Thing.count() is applicable ...
(more…)

G2One acquired by SpringSource and Grails 1.0.4 released

Saturday, November 15th, 2008

It has been a busy week for the Groovy and Grails teams. On November 11, it was announced that G2One, the company behind Groovy and Grails was acquired by SpringSource, the company behind the Spring Framework. You can find details about this at the SpringSource web site.

On November 14th, the release of Grails 1.0.4 was announced. You can get it from the Grails download page.

I have used portions of the Spring Framework for years. I have always thought their product was reliable and well documented. This work was primarily in server side development and, as such, did not use a lot of the features of the entire Spring Framework.

I have been playing around with Groovy and Grails for a couple of years now. I’ve deployed some Groovy applications, but Grails has been a learning exercise for me. Like I said, most of my work has been on the server side. However, I’m amazed at how quickly someone can have something functional in Grails. Maybe someday I’ll be able to use it on a real project.

I’m also looking forward to seeing what happens now with Groovy and Grails. I would expect to see the adoption increase with the respected name SpringSource now behind them.