File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes how does Spring Roo help incorporate best practices Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "how does Spring Roo help incorporate best practices" Watch "how does Spring Roo help incorporate best practices" New topic

how does Spring Roo help incorporate best practices

Paul Anilprem
Enthuware Software Support
Ranch Hand

Joined: Sep 23, 2000
Posts: 3635
Hi Ashish,
I read your blog post titled "Spring Roo - future of Java application development". There, you've mentioned 3 examples of where Spring Roo comes into picture. I am thinking all these 3 things are easily handled by the IDEs. Do you think what is generated by IDEs does not follow best practices? How is what generated by SR is better than that? Could you please explain that?

Could you please give any concrete example where SR adds a value not provided by IDEs?

thank you,

Enthuware - Best Mock Exams and Questions for Oracle Java Certifications
Quality Guaranteed - Pass or Full Refund!
Ashish Sarin
Ranch Hand

Joined: Nov 20, 2000
Posts: 432
Hi Paul,

Spring Roo is a code generation tool. The examples that I talked about in my blog refer to some of the auto-generated code by Spring Roo, which you can do using an IDE also. The best practices are related to how the code is structured and how Spring framework features are used. For instance, in an application the interaction between layers is Web --> Service --> DAO. If you are developing a Spring-based application, a good practice is to create different application contexts XML files for objects in the web layer and the dao+service layer. If you are using Spring Roo, then this is automatically done for you. Another example is - Spring Roo scaffolded web layer is RESTful in nature.


Author of
Getting started with Spring Framework
Portlets in Action
Spring Roo 1.1 Cookbook
Portlets blogSpring Roo blog
I agree. Here's the link:
subject: how does Spring Roo help incorporate best practices
jQuery in Action, 3rd edition