February 05, 2008

Grails 1.0 Web framework ready

Grails platform leverages Groovy, Java, Spring for Web app development

The Grails 1.0 open source Web application development framework was announced this week by G2One, which specializes in Groovy and Grails technology, and the Grails development team.

Grails is built on Java and the Groovy language. It leverages APIs from the Java enterprise sphere including Spring, Hibernate, and SiteMesh, G2One and the development team said. With Grails, Java and Ruby developers get convention-based rapid development while leveraging existing knowledge and capitalizing on APIs Java developers have used for years.

"What we’re trying to achieve is really to fundamentally simplify Java EE [Enterprise Edition] development," said Graeme Rocher, creater of the Grails project and CTO at G2One.

Grails is different from other dynamic language frameworks because it embraces Java and leverages Spring at its core, Rocher said. Spring's role in Grails is akin to being an enterprise application toolkit that features ease of use, he said. Hibernate is used for object-relational mapping in Grails, he said.

Used mainly for Web applications and available previously in point releases, Grails also can be used for desktop applications and Web tiers. AJAX (Asynchronous JavaScript and XML) support is built in through a prototype library, Rocher said. Plug-ins enable Grails to work with technologies such as Adobe Flex, Google Web Toolkit, and the Yahoo UI library.

The 1.0 version has been in the making for two years and eight months. New features including an ORM DSL (Object Relational Mapping Domain Specific Language) for advanced mappings, support for easy-to-use filters, and content negotiation. REST (Representational State Transfer) also is leveraged, as is JNDI (Java Naming and Directory Interface).

ORM DSL allows Grails to support legacy databases in applications. "Essentially, it’s a declarative way to say that this object maps on to these tables," Rocher said.

Filters apply cross-cutting behaviors to Web applications to apply capabilities such as security, tracing, and logging. With REST support, Grails allows for existing Web objects to be converted to XML or JSON (JavaScript Object Notation), with tasks being automated.

With JNDI, Grails provides the ability through Spring to look up existing programming objects such as a data source.

Grails 1.0 is downloadable here. The Grails project receives 5,000 to 10,000 downloads per month, Rocher said.

Paul Krill is an editor at large at InfoWorld.
Close

On Twitter now

Application development

Powered by Twitter

White Paper

D2D Virtual Tape Library Replication Primer

This whitepaper explains the terminology and concepts behind Data Replication technologies and establishes some sizing rules through worked examples. Learn the new paradigm in disaster tolerance—protect data anywhere.

Download now »

White Paper

An Alternative to Virtualization for Datacenter Cost Savings

Server virtualization is a popular option for dealing with mounting datacenter costs. Another equally promising approach is the use of an Application Delivery Controller. Citrix NetScaler provides a low-cost way for organizations to reduce their server count and accrue cost savings from a reduction in space, cooling, power and personnel.

Download now »

White Paper

Why Your Firewall, VPN, and IEEE 802.11i Aren't Enough to Protect Your Network

The emergence of WLANs has created a new breed of security threats to enterprise networks.

Included in HP ProCurve WLAN solutions is security technology that alleviates threats from WLANs through:
* Monitoring wireless activity inside and out of the enterprise
* Classifying WLAN transmissions into harmful and harmless
* Preventing transmissions that pose a security threat to the enterprise network
* Locating participating devices for physical remediation

Download now »

White Paper

Bringing the Edge to the Data Center

Effectively address data protection challenges, implementing solutions that help store and protect business–critical data while cutting costs and improving efficiency and reliability.

Download now »

Sign up to receive InfoWorld Resource Alerts

Subscribe to the Developer World Newsletter

Receive a weekly roundup about the art and science of software development.

©1994-2009 Infoworld, Inc.