Java J2EE Portal
Enterprise Java Station
J2EE curve
Java News / Articles
Java News / Articles
Effectively Taming Service Oriented Architecture (SOA) Chaos
Building JSF and EJB3 applications using the JBoss Seam framework
Simplified BPM integration with JBoss jBPM
Processing...
Buy Java, Deals On Software Technology Store
Click here for great deals on computers, laptops, software and books
Groovy bridges the scripting and the enterprise Java worlds PDF Print
Written by Content Team   
Apr 06, 2006 at 06:26 AM
IndicThreads >> Ruby On Rails is getting a lot of attention and the Java community is hungry for a Java alternative. Is Grails the thing?

Guillaume Laforge >> I sincerely think Grails is “the thing”, as you say. First of all, Groovy has the feel of Java – with its Java-like syntax – and gives Grails dynamic capabilities that Java counterparts can’t have. Grails builds upon excellent components such as Spring, Hibernate and SiteMesh, to create a full-blown environment for developing applications quickly, and it will let you focus on the business tasks rather than wasting time with some boilerplate code our long and tedious configuration files that could’ve been avoided with a good “convention over configuration” paradigm as popularized by Rails.

"I sincerely think Grails is “the thing”..."

With Grails, you write simple Groovy beans for your domain classes, and they are persisted to the database automatically. Groovy decorates those beans to give them some additional dynamic methods such as save(), delete() or findByXxxx() without making the beans implement or extend any base class, thus leaving your objects free of any dependencies upon the framework itself.

You can write your services and have automatic injection of dependent services by just declaring the service you rely on. It’s also very easy to build controllers and actions with injection of services, and also with scaffolded actions like list/create/edit/etc for your CRUD-oriented apps.Grails is really a very promising framework that will truly increase your productivity.

"Grails is really a very promising framework that will truly increase your productivity..."

IndicThreads >> How suited is Groovy for enterprise development? Are you planning any replacements for JSP, Servlets and EJBs?

Guillaume Laforge >> Critical applications are already deployed in production spiced up with some Groovy scripts and classes. For example: a fortune 500 insurance company in the USA has deployed such an application, a London-based financial institution too, some high-traffic websites do use Groovy too.

GroovyGrailsWe’re not planning on replacing anything. We prefer building upon something and bringing more agility in the process of using this or that technology. To add a Groovy-feel if you wish! There are very good components or libraries, and it would be a waste of time to try and make something new. We prefer looking from the shoulder of the giants.

The sole replacement there could be is Grails’ GSP: Groovy Server Pages. It’s Grails own version of JSPs. And it goes beyond JSPs in terms of functionality. First by letting you write scriptlets in Groovy, and also because it supports some special Grails dynamic tag libraries, but can still use JSP tag libs too.

IndicThreads >> Thanks Guillaume for this groovy interview. Readers can keep up with Guillaume through his blog at glaforge.free.fr/weblog.

Guillaume Laforge >> That’s been a pleasure to answer this interview! Thanks a lot. 2006 should be a Groovy year, with the release of our final version of Groovy, and the first releases of Grails, our web application framework. Some books will also hit the shelves in a few months. Dierk Koenig, Andrew Glover are finishing the last chapters of “Groovy in Action”, for Manning. And as shown on my blog, there will be an excellent coverage of Groovy at JavaOne 2006!

(little correction, the best URL for my blog is this one: http://glaforge.free.fr/blog/groovy that’s the one with Groovy content)

Related:
>> BEA to support scripting languages
>> Java apps can incorporate scripting language programs
>> Introduction To Groovy @ The IndicThreads Pune Java Meet
>> I'm a big fan of scripting as much as possible


User Comments

Comment by 'Guest' on 2006-04-15 11:46:33
Thanks for this insightful interview! 
Jerome

Comment by 'Guest' on 2006-07-13 01:07:52
It looks like Groovy has gotten over some of its past rough spots and is now closing in on a 1.0 release. I like it.
Your Name / Email Address
Comment
Spam Protection - Please enter the code in the image -

Listen to code




Add This Feed Button

Enter your Email


Java Expert Interviews
JonathanAgileXPSoftwareTestingX
The good and bad of XP and Agile notions of software testing
Jesper_Joergensen
WebLogic 9.0 takes J2EE to a new level of reliability and scalability
ChristopherDuncan
Programmers lose because they are unwilling to learn any skill beyond the technical
Processing...
Go to top of page  Home |
SiteMap

Copyright 2004 to 2008 Rightrix Solutions. All rights reserved. All product names are trademarks of their respective companies. Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. Rightrix Solutions and IndicThreads.com are independent of Sun Microsystems, Inc.

Views expressed at IndicThreads.com reflect the views of the authors alone, and do not necessarily reflect those of IndicThreads.com. IndicThreads.com and it's authors are not responsible for reader comments and opinions.

Enterprise Java J2EE JEE Portal >> IndicThreads.com