Friday, September 25, 2009

Griffon framework is great for quick utilities

Update, moved to Just Thinking: Code

I've been very successful this week in throwing together a quick application to read a Excel file and update a Web Service. Typically I would have done this in Groovy as a command line app. But I really wanted to put some of the information in a text field and have buttons to initiate different functions. Griffon allowed me to very quickly build a swing app.

I've not used Griffon for anything in the past. I have put together a couple of apps with Grails, but it's really not the same (close, but not the same). I've been waiting for Gorm to be ported to Griffon to use it for anything, but this project did not need any database access.

BTW, I used Poi for reading the Excel file and GroovyWS for accessing the Web Services. GroovyWS needs more work (especially in error handling), but it was sufficient for what I need to do. I covered another problem with GroovyWS here, and I dearly wish that one was fixed in the library itself.

Griffon is a Groovy-based framework for developing standalone Java applications similar to Grails. http://griffon.codehaus.org/

Grails is a Groovy-based framework for creating Web Applications. http://grails.org/

Groovy is a great programming language. http://groovy.codehaus.org/


1 comment:

hansamann said...

Great thoughts and I totally agree. I think the entry drug for using Griffon is converting some command-line utilities into desktop GUI's. For various reasons, in my company some people for example felt uncomfortabl with command line tools...