• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

Grails Vs Spring ROO

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using GRAILS with Spring, Hibernate and Groovy . Spring Annotations, AOP and dependency injections are few areas of Spring I have had hands on.
Could you please explain how different Spring Roo is different when compared to its usage in Grails framework?
How different a Grails person will experience when Spring Roo is given a try.

Thanks,
Shemida
 
author
Posts: 63
Mac OS X Spring Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Shemida,

I've laid it out in some of the other posts this week, but - the main thrust of the difference is that although you're using Spring and Hibernate under the covers with Grails, and you get nice concise Groovy language features, you're essentially still doing Hibernate + Spring.

With Roo, all they are doing is pulling the boilerplate away from you by building generated aspectJ files, and weaving them in at compile time to your beans. They are also giving you commands to easily configure and add elements to your project in a shell. So in a way, that is similar to Grails, but realistically you're never leaving the Spring sandbox, and not abstracting away the container or Spring into another domain specific language. And finally, they open up the command set for extension by writing your own OSGi-based add-ons which you can install in the shell.

Chapter 1 of the book (online and free) walks through this so you can get a good idea from there of what it's like. Chapter 2 goes through an interactive example. Also, another free chapter, 3, shows the entity model, and you can see how it is different than the Grails domain model. We get into relationships in another paid chapter, 4, but everything else is there in chapter 3. Those are at manning.com/springrooinaction

Best,

Ken
 
It means our mission is in jeapordy! Quick, read this tiny ad!
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic