Start reading The Definitive Guide to Grails on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here.

Deliver to your Kindle or other device

 
 
 

Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Read books on your computer or other mobile devices with our FREE Kindle Reading Apps.
The Definitive Guide to Grails (Expert's Voice in Web Development)
 
 

The Definitive Guide to Grails (Expert's Voice in Web Development) [Kindle Edition]

Graeme Rocher , Jeff Brown
3.8 out of 5 stars  See all reviews (5 customer reviews)

Digital List Price: £30.48 What's this?
Print List Price: £36.99
Kindle Price: £24.38 includes VAT* & free wireless delivery via Amazon Whispernet
You Save: £12.61 (34%)
Unlike print books, digital books are subject to VAT.

Formats

Amazon Price New from Used from
Kindle Edition £24.38  
Paperback £35.14  


Product Description

Product Description

The rise of Ruby on Rails has signified a huge shift in how we build web applications today; it is a fantastic framework with a growing community. There is, however, space for another such framework that integrates seamlessly with Java. Thousands of companies have invested in Java, and these same companies are losing out on the benefits of a Rails–like framework. Enter Grails.

Grails is not just a Rails clone. It aims to provide a Rails–like environment that is more familiar to Java developers and employs idioms that Java developers are comfortable using, making the adjustment in mentality to a dynamic framework less of a jump. The concepts within Grails, like interceptors, tag libs, and Groovy Server Pages (GSP), make those in the Java community feel right at home.

Grails’ foundation is on solid open source technologies such as Spring, Hibernate, and SiteMesh, which gives it even more potential in the Java space: Spring provides powerful inversion of control and MVC, Hibernate brings a stable, mature object relational mapping technology with the ability to integrate with legacy systems, and SiteMesh handles flexible layout control and page decoration.

Grails complements these with additional features that take advantage of the coding–by–convention paradigm such as dynamic tag libraries, Grails object relational mapping, Groovy Server Pages, and scaffolding.

Graeme Rocher, Grails lead and founder, and Jeff Brown bring you completely up–to–date with their authoritative and fully comprehensive guide to the Grails framework. You’ll get to know all the core features, services, and Grails extensions via plug–ins, and understand the roles that Groovy and Grails are playing in the changing Web.

What you’ll learn

  • Discover how the Web is changing and the role the Groovy language and its Rails framework play
  • Get to know the Grails Project and its domains, services, filters, controllers, views, testing, and plug–ins
  • Experience the availability of plug–ins for Rich Client and Ajax, web services, performance/utilities, scheduling, security, functionality, and even Persistence
  • See how Grails works with other frameworks like Spring, Wicket, Hibernate, and more
  • Create custom plug–ins in Grails

Who this book is for



This book is for everyone who is looking for a more agile approach to web development with a dynamic scripting language such as Groovy. This includes a large number of Java developers who have been enticed by the productivity gains seen with frameworks such as Ruby on Rails, JRuby on Rails, etc. The Web and its environment is a perfect fit for easily adaptable and concise languages such as Groovy and Ruby, and there is huge interest from the developer community in general to embrace these languages.


Product details

  • Format: Kindle Edition
  • File Size: 6081 KB
  • Print Length: 647 pages
  • Page Numbers Source ISBN: 1590599950
  • Publisher: Apress; 2 edition (15 Jan 2009)
  • Sold by: Amazon Media EU S.à r.l.
  • Language English
  • ASIN: B001WAK7P0
  • Text-to-Speech: Enabled
  • Average Customer Review: 3.8 out of 5 stars  See all reviews (5 customer reviews)
  • Amazon Bestsellers Rank: #219,542 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?


More About the Author

Graeme Keith Rocher
Discover books, learn about writers, and more.

Visit Amazon's Graeme Keith Rocher Page

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 

Your tags: Add your first tag
 

Customer Reviews

Most Helpful Customer Reviews
7 of 8 people found the following review helpful
Format:Paperback
The books builds a music store application - 'gTunes'.
It calls upon Amazon Web Services to download album art and Quicktime to playback music as streaming audio. Initially this is done natively with Groovy and later a technique is used to call upon Java's NIO methods to make process more efficient.

An email notification services is provided enabling users to be notified of new album releases by an artist by using ActiveMQ JMS.
The book also demostrates FCKEditor, a web enabled text editor akin to Word, conventionally used for blogging, but added to the pot to integrate web master style announcements.

Grails is build upon Spring and Hibernate 3. It simplifies the developers life though by abstracting away the need to deal directly with so much of the XML configuration. So in effect you don't have as many disparate artifacts making up the code. It does this by utilising closures one of tne key features of Groovy. I believe Grails draws some of its inspiration from Ruby on Rails and follows the mantra. Convention over Configuration. All this makes the developers life easier.

Other aspects where Grails shines are in the way that all the telemetry involved in handling pagination. This is automatically provided out of the box.

The book shows how to create wizard type functionality. Now this builds upon Spring Web Flow. Grails narrows the disparity between the traditional Spring programming models of 'Spring MVC' versus 'Spring Web Flow' in this process and makes use of things like conversational and flash scopes. Something Struts 2 or JBoss Seam developers will be familiar with.

GORM the Groovy object relational mapping technology is showcased in detail. It's a DSL founded upon Hibernate 3 that does away with the need for the Data Access Object design pattern. It automatically creates finder methods for your domain properties through the Groovy Meta Object Protocol (MOP).

With GORM you embelish Domain classes with constraints which are used for validation purposes. But you can also embelish conventional annotated JPA domain classes by providing an additional class with the naming convention of 'domain name' with Constraint' appended, so you can easily reutilise EJB3 code. Compare this to things like Commons Validator or early Spring Bean Validation Framework with all it's XML and you'll find this a boon. (Things have admittedly improved with annotated BVF, JSR303 and Hibernate Validator).

GSP is illustrated. It much like JSP, but by taking advantage of the operator overloading Groovy provides to enhance Java, it becomes much easier to write custom tags.

In the area of Security, JSecurity is utilised and permissions used to only allow songs deemed as purchased to be listened to.
The book also touches upon how to defend against SQL Injection/Denial of Service attacks and Cross Site scripting.

The book also showcases Gant. (The Groovy version of Ant. Enables you to do conditional/loop processing without need for Ant Contrib). The book uses Gant and integrates with Ivy for dependency management instead of Maven. It is an agile development environment and is pre-configured for use with Jetty, much like Matt Raible's AppFuse. It touches upon how to manage the deployment process as well as IDE's that support Groovy/Grails.

The various flavours of Ajax integration gets a brief mention.

Web service coverage predominantly revolves around REST. There is an intro to using SOAP with Grails, but the example didn't seem to gel with the text.

The Appendix contains an overview of Groovy.

There were a number of listings quoted in the text which are incorrect. I guess this comes from the re-editing process and a lack of final proof reading. This tended to confuse things at times, but for the most part I was able to resolve these to their proper value and fed this back to APress/Graeme.

Overall the book is not as clear as Beginning Groovy & Grails, in that it tends to veer off course from time to time and illustrate things that aren't building upon the core gTunes app. But all in all it provides a much finer level of granularity and clarifies how Grails integrates & sits upon Spring and Hibernate.

To the uninitiated, I'd recommend reading Groovy in Action, Beginning Groovy & Grails, then this book to get a good understanding of both Groovy & Grails.
Comment | 
Was this review helpful to you?
1 of 1 people found the following review helpful
Could be better 15 Feb 2010
By KJ
Format:Paperback
I bought this book based on the reviews of others and I must admit to been underwhelmed.

"The Definitive Guide" it is not. What is presented is a well crafted example that guides your through the basics. There is no mention of best practices or reference to real world design decisions that you would need to make in the real world. Granted, thats an expectation of mine and not the authors.

At times I wasn't entirely sure whether I should be adding some of the code examples to my private version of gTunes that you build up as you work through the book or whether the code was provided for information purposes. This required flicking back and forth making it harder to follow.

I also found the book a little disjointed. The book introduces concepts as you go through the example system but there is often references to cocepts that have not been introduced.

In summary a good book but nothing special as far as tech books go. It does whats intended but other than offering a basic beginners guide I can't see myself using this as a reference.

"Grails in Action" is a much better book and one that covers all the bases for someone wishing to learn a new technology. The coverage is more in-depth and I felt had a little more substance to it. In my opinion the
Comment | 
Was this review helpful to you?
1 of 1 people found the following review helpful
By DenisH
Format:Paperback
I've been meaning to learn Grails for ages and then two projects came along for which Grails seemed like the ideal choice. This book assumes that you already know Groovy (if not, then Groovy in Action is an ideal companion--though there is an Appendix on Groovy in the book). It then steps you though buiding a music store. It introduces all the key concepts such as Domain objects, Controllers and views, but also covers security (very well, with all sorts of generally useful security hints), url rewriting, services, commands and taglibs.

It also shows you how to leverage existing plug-ins and to write your own (including why you should do this even if you don't intend to make it publicly available).

All in all an excellent, clearly written, useful book.
Comment | 
Was this review helpful to you?

Popular Highlights

 (What's this?)
&quote;
A controller is prototyped, meaning that a new instance is created per request. So developers don't need to be as cautious about maintaining thread-safe code in a singleton controller. &quote;
Highlighted by 6 Kindle users
&quote;
Grails' built-in validation mechanism, called constraints, can also affect how the interface is rendered, including the order in which fields are displayed and the type of field that is rendered. &quote;
Highlighted by 5 Kindle users
&quote;
Grails will look for a view at the location grails-app/views/song/show.gsp. The name of the view is taken from the name of the action, while the name of the parent directory is taken from the controller name. &quote;
Highlighted by 5 Kindle users

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   



Look for similar items by category


Look for similar items by subject


Amazon Media EU S.à r.l. GB Privacy Statement Amazon Media EU S.à r.l. GB Delivery Information Amazon Media EU S.à r.l. GB Returns & Exchanges