Skip to main content

Mastering Grails

The landscape of Java-based web development underwent a profound transformation in the mid-to-late 2000s, moving away from heavy-weight, XML-intensive configurations toward more agile, dynamic, and productive frameworks. At the heart of this evolution was the "Mastering Grails" series published on IBM developerWorks.

Authored by Scott Davis, this series served as a definitive guide for enterprise developers seeking to leverage the power of the Java Virtual Machine (JVM) while adopting the rapid development paradigms pioneered by frameworks like Ruby on Rails.

While the original IBM articles have been phased out due to platform evolutions, this archive preserves the foundational architectural principles championed by the series, with surviving PDF documents available for review.

Series Archive

Build your first Grails application

An introduction to the Grails framework. Discover how to leverage convention over configuration to rapidly build a basic trip-planner web application on the Java Virtual Machine without writing verbose XML.

Archival Document Available
A preserved copy of this installment is available for review.

Download PDF Archive

GORM: Funny name, serious technology

A deep dive into Grails Object Relational Mapping (GORM). Learn how to interact with relational databases seamlessly using Groovy closures and dynamic finders instead of writing complex SQL or mapping files.

Archival Document Available
A preserved copy of this installment is available for review.

Download PDF Archive

Changing the view with Groovy Server Pages

Putting the Web into the Grails framework. See how easy it is to use Grails TagLibs, mix together partial fragments of Groovy Server Pages (GSP), and customize default templates for automatically generated views.

Archival Document Available
A preserved copy of this installment is available for review.

Download PDF Archive

Many-to-many relationships with a dollop of Ajax

Moving beyond basic CRUD operations. This installment explores how to model complex real-world data structures using many-to-many relationships within GORM, and enhances the interface using asynchronous JavaScript (Ajax).

Archival Document Available
A preserved copy of this installment is available for review.

Download PDF Archive

Grails services and Google Maps

Keeping controllers thin by extracting core business logic into transactional Grails Services. This installment demonstrates mixing external technologies into the application by integrating geocoding and the Google Maps API.

Archival Document Available
A preserved copy of this installment is available for review.

Download PDF Archive

Grails and the mobile Web

Adapting the trip planner application to support the burgeoning mobile web ecosystem, ensuring layouts and data delivery perform optimally across varied devices and screen sizes.

Archival Document Available
A preserved copy of this installment is available for review.

Download PDF Archive

Grails and legacy databases

Explores strategies and best practices for securely connecting a modern Grails application to pre-existing legacy relational databases without compromising data integrity.

Archival Document Available
A preserved copy of this installment is available for review.

Download PDF Archive

The Grails event model

Investigates the asynchronous event-driven capabilities within the Grails framework, demonstrating how to decouple application components for better scalability, performance, and maintainability.

Archival Document Available
A preserved copy of this installment is available for review.

Download PDF Archive

RESTful Grails

A comprehensive examination of building Representational State Transfer (REST) APIs with Grails, allowing for seamless data exchange with external clients and modern web architectures.

Archival Document Available
A preserved copy of this installment is available for review.

Download PDF Archive

Testing your Grails application

Establishing robust application reliability through automated testing. An exploration of writing unit and integration tests for your domain classes, controllers, and services using the built-in testing framework.

Archival Document Available
A preserved copy of this installment is available for review.

Download PDF Archive

Asynchronous Grails with JSON and Ajax

Enhancing application responsiveness by utilizing JavaScript Object Notation (JSON) to asynchronously stream data between the server and the browser, shifting rendering logic to the client.

Archival Document Available
A preserved copy of this installment is available for review.

Download PDF Archive

Grails in the Enterprise

Putting to rest any qualms about Grails' readiness for the enterprise. Discover how to natively integrate Grails with enterprise-caliber libraries including Java Management Extensions (JMX), Spring, and log4j.

Archival Document Available
A preserved copy of this installment is available for review.

Download PDF Archive