First they ignore you
then they ridicule you
then they fight you
then you win
    -- Mahatma Gandhi
Chinese => English     英文 => 中文             
随笔-221  评论-1047  文章-0  trackbacks-0

Grails 1.0 Released: Productive Web App Development on the JVM

Posted by: Joseph Ottinger on ?? 08, 2008 DIGG
The Grails team and G2One, the Groovy/Grails professional services company, have just released the final 1.0 version of Grails, the agile web application development stack, built on best of breed Open Source components such as the Groovy dynamic language, the Spring framework, and the Hibernate ORM solution.

In this final version, Grails brings new features on board:
  • GORM DSL for advanced Mappings: The Grails Object Relational Mapping built on top of Hibernate adds a Domain-Spcific Language that reduces the need to fall back to traditional Hibernate mapping.

    The DSL allows customization of table and column names, inheritance strategy, second-level cache configuration, Id generation strategy, composide Id support, eager/Lazy loading, database indices, and custom Hibernate user types.
  • Support for easy to use Filters: Grails has up until now supported interceptors that can be used within controllers. Filters however offer a more powerful way of defining cross cutting concerns.Filters can be applied to an entire controller, only specific actions or entire URI spaces.
  • Content Negotiation support: Grails now supports content negotiation via the Accept/Content-Type HTTP headers, a parameter or URI extensions. Mime types can be configured in Grails' Config.groovy configuration file.
  • REST support: JSON and XML requests can now be automatically unmarshalled via the params object.
More details can be found on the official release notes.

Also worthy of notice beyond a static feature list, the Grails team worked on a very complete and thorough new documentation to help Grails users get the best out of the framework.

If you haven't tried Grails yet, Scott Davis recently published an excellent article to get you started with Grails on IBM DeveloperWorks.

Even though Grails wasn't released by the time, many companies have successfully deployed Grails applications in production, as Graeme Rocher, Grails lead, explained in a recent interview on InfoQ, such as major French broadcasting and media companies, a top Human Resources company in the UK, or by SAP's Composition on Grails project which allows people to quickly build composite applications on SAP NetWeaver 7.1. Startups have also picked up and leveraged Grails to build scalable FaceBook applications with a classifieds service (a reverse classifieds concept), and a friendly application to find friends and places for a beer, and some people also built an innovative online community multi-media and story tool with Grails. Last but not least, Enotions Ltd has built several Grails-powered sites for different PepsiCo brands.

The blogosphere is abuzz with the announcement of the release. Paul Krill, columnist at InfoWorld says:
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.
While blogging about the release, Matt Raible underlines that:
For companies that have invested a lot of time and money into the JVM as a platform, it seems like Grails is the clear winner over Rails.
Steven Devijver, one of the original Grails founders, mentions on GroovyZone, the new community news site dedicated to Groovy and Grails, that:
For [him] Grails is the ultimate rapid prototyping platform for Java. [He's] built numerous applications by dropping in existing Hibernate-configurated classes and generate scaffolding views. It gets you started really quickly and helps you to focus on the application you're building.
A key element in the agility of Grails comes from its choice of the mature and powerful Groovy dynamic language as the core glue to tie all the layers together. Back in december, Groovy 1.5 was released, making the headlines with its new features, covered extensively on InfoQ, and performance improvements. Groovy has also been noticed to be becoming more popular and widespread on the TIOBE index, ranking Groovy as the 31st most popular language, coming from the 66th rank 6 months earlier, and over 100th a year before. Also, Groovy has proven to be a viable and mature platform on its own, as several success stories have shown over the past few years, in various sectors:
  • in financial institutions to handle million-dollars hedge funds or to customize advanced trader desktop applications,
  • in a US Fortune 500 insurance company, Mutual of Omaha, where Groovy is used as a business language in a risk calculation engine for insurance policies,
  • in a top major American credit card company,
  • or in the health sector, for the US National Cancer Institute, where Groovy checks, fixes, and validates patient file details, and in bioinformatics, for crunching genenome data sources.
If you want to learn more about both Groovy and Grails, beyoned the existing titles such as Groovy in Action and The Definitive Guide to Grails, new books are hitting the shelves in the coming months:Beyond books, the NoFluffJustStuff crew is organizing the first major North American conference dedicated to Groovy and Grails, the 2G Experience. The conference takes place in Reston, Virginia, near Washington DC, on February 21-23.

As the site puts it:
You will learn about rapid application development with Groovy / Grails and network with other developers who are redefining the way web applications are developed on the Java platform.
Among the numerous reknowned speaker and Groovy / Grails contributors, Venkat Subramaniam speaks about his upcoming sessions on Domain-Specific Languages in Groovy, and testing techniques in Groovy, Neal Ford is interviewed on his slots about Design Patterns in Groovyn and a comparison of JRuby and Groovy, and Jason Rudolf gives more details on his presentations on advanced usages of the GORM layer.

(Of course, it shouldn't go without note that TheServerSide Java Symposium covers Groovy as well: one example is Scott Davis' presentation on Metaprogramming (Or: The Groovy Way to Blow a Buttoned-Down Java Developer’s Mind). We look forward to seeing you there.)


原文地址:http://www.theserverside.com/news/thread.tss?thread_id=48360
附:朝花夕拾——Groovy & Grails

--------------------------------------------------------------------------

Threaded replies

· Grails 1.0 Released: Productive Web App Development on the JVM by Joseph Ottinger on Fri Feb 08 10:21:41 EST 2008
  · Congrats and Thanks! by Steve Tekell on Fri Feb 08 10:55:17 EST 2008
    · Thank you! by Daniel Kordoba on Fri Feb 08 12:06:32 EST 2008
    · Step into the next Generation by Peter Delahunty on Mon Feb 11 00:25:50 EST 2008
  · Re: Grails 1.0 Released: Productive Web App Development on the J by shailesh mangal on Fri Feb 08 13:27:21 EST 2008
  · Grails is worth a try for anyone by Nos Doughty on Sun Feb 10 06:23:52 EST 2008
 Message #247208Post replyPost replyPost replyGo to topGo to topGo to top

Congrats and Thanks!

Posted by: Steve Tekell on ?? 08, 2008 in response to Message #247204
Congrats on 1.0 and thanks for all your hard work, I'm happily using grails.

 Message #247211Post replyPost replyPost replyGo to topGo to topGo to top

Thank you!

Posted by: Daniel Kordoba on ?? 08, 2008 in response to Message #247208
As a user since 0.4 I want to congratulate the entire G2One team behind Grails for this very important release, thank you for your hard work.

 Message #247219Post replyPost replyPost replyGo to topGo to topGo to top

Re: Grails 1.0 Released: Productive Web App Development on the J

Posted by: shailesh mangal on ?? 08, 2008 in response to Message #247204
This is a great news, something I have been waiting for months. Congratulations to the team. My experience with upgrade to RC4 from RC3 hadn't been the greatest and had issues in deployment to tomcat. Will surely give this a try.

-Shailesh
Now, test management is a breeze

 Message #247264Post replyPost replyPost replyGo to topGo to topGo to top

Grails is worth a try for anyone

Posted by: Nos Doughty on ?? 10, 2008 in response to Message #247204
I've been using Grails for the past month.

I did a project in Rails and was very disappointed with it, primarily 'ActiveRecord' and deployment. I was also disappointed that the plugins had a high likelyhood of conflicting with each other and were in some cases sensitive to the mode (dev/test/prod) due to the use of the cache.

The language itself (Ruby) is gorgeous, but the lack of any type of type checking made for great pains when making larger 'refactoring' type changes to the codebase.

I had been very skeptical of grails, primarily because of the trouble with groovy in the days when it was being inducted into the JCP.

However, Grails is the most amazing development experience I have ever had. Running as basically a light framework over Spring/Hibernate means it has all the power you could ever want in a framework that is probably about 2/3rds as pleasant as Rails, and much more deployable.

My experience has got me wondering if 24 months from now Grails will be the standard way to build Java web apps just like Hibernate superseded EJB as the semi-official data access technology.

Grails (and Groovy) is an incredible technology that everyone should try!

 Message #247297Post replyPost replyPost replyGo to topGo to topGo to top

Step into the next Generation

Posted by: Peter Delahunty on ?? 11, 2008 in response to Message #247208
I have been using Grails since 0.4 and it is awesome.

This is how i see it:

Ruby on Rails a is prototype "proof of concept" that showed us how to do Rapid web development. But it was never really taken seriously.

Grails however is the industry strength version of that vision. Grails provides all the core ideas that RoR gave us but just elegantly packaged them into the robust world of Java.

10 reasons why i love Grails:

1: Its all just Java on a JVM under the hood.
2: Its all just Spring hibernate etc under the hood.
3: The Grails abstractions are simply amazing (GORM, Controllers, Domain Models)
4: All Grails projects have the same elegant structure. Hit the ground running familiarity.
5: Its all about the details. Simply when building a web based application 99% of the things you want to do are standard thing done that have been done a thousand times before. Grails makes is so unbelievably easy to do them it is like coding with your eyes closed.
6: GORM is simply amazing.
7: Environment setup and configuration. Want production configuration. Simple as flicking a switch.
8: 99% of my time is spent on building my application not plumbing the framework.
9: Once you are in the "groovy-grails zone" thing just flow like using the force. Most things are are just one line away. Eg want you output in XML then type "as xml" want it in JSON then type "as json"
10: It is fun. Web development is actually fun fun fun again.

Pete
posted on 2008-02-11 16:41 山风小子 阅读(1290) 评论(0)  编辑  收藏 所属分类: Groovy & Grails