File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes compare spring roo with grails Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "compare spring roo with grails" Watch "compare spring roo with grails" New topic
Author

compare spring roo with grails

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Dear authors,

Is Spring Roo a java version of grails ? After from the language does it have more features than grails ? ?If langauge is not a barrier why should one use spring roo rather than grails. Please guide us.

thanks a lot
cheers,

pradeep


Groovy
Ken Rimple
author
Ranch Hand

Joined: Jul 20, 2010
Posts: 63

Hi, Pradeep...

Roo and Grails have different fundamental approaches. Roo is a tool, not a framework per se. It helps you roll out frameworks in your Spring-centered applications. It treats Spring, Spring MVC, JPA, etc as first-class APis, so in that way it is more of a productivity tool.

The alternative view of Grails is that a set of small domain specific languages written in Groovy simplify web development. GORM, Grails controllers and services are all groovy-language driven and simplified. Easier to learn of themselves and in some ways more powerful.

For a green-field project with no basis on Java or Spring, Grails is a good choice. I am still a big fan. However, for larger project teams, for projects that heavily leverage Spring APis, for staying on the Spring platform, Roo is a good choice. Also as a way of leveraging expertise from other team members in the form of custom add-ons, Roo has a higher learning curve(OSGi, etc) but you can do anything you want to your project (within reason). And every Roo feature is written as an add-on so you can learn techniques by browsing the source on GitHub.


Ken Rimple
ken.rimple@gmail.com
Co-author, Manning Spring Roo in Action
I teach for Chariot Solutions (Spring, Maven, Hibernate, other courses). Schedule here
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

if Roo is not a framework, what would the output of views be ? Does it contain any jsp content or not? Please clarify.
James White
Greenhorn

Joined: Apr 22, 2003
Posts: 23

Spring Roo produces jsps or a variant of jsps I don't exactly remember which. Spring Roo basically uses Spring MVC to do web based work. You can use GWT and several other web based frameworks within Roo. But ultimately, Spring Roo allows you to write Spring based applications very quickly and relies heavily on AOP. If you've ever played around with Ruby/Rails, think of Spring Roo in a similar vein, where you use commands to write a lot of the boilerplate you would have to write by hand.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

You said roo is more suitable if it is a spring app. what about a non-spring app where I don't want to use grails as team may not be comfortable with groovy and performance sensitive app?

Thanks for answering my questions so far. I will get chance to work on spring roo app in the future , hope I win your book.
Ken Rimple
author
Ranch Hand

Joined: Jul 20, 2010
Posts: 63

Roo only creates Spring apps. So, you're giong to be working in Spring directly if you use Roo.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: compare spring roo with grails