Showing posts from May, 2012

Spring Roo Tutorial

This post will take you through the steps required to build a simple Spring MVC application using Spring Roo. I’ll explain each command as we go and show you how Roo can be used to quickly build a fully functional Java application using best practices.

Before you begin you’ll need to download Roo from and set up the ROO install directory in your environment variables. This will allow you to launch the Roo command shell from the command prompt.
1. Start up command prompt and move the directory that you’d like to build your application in. For this tutorial I’ll be building my app in C:\tutorial.
2. Once you've navigated to your chosen directory simply enter ‘roo’ to start up the Roo command shell. You should see the shell start up something like figure 1.0 below.
Figure 1.0
3. Enter the following command
          project --topLevelPackage com.tutorial.roo --projectName RooDemo       This command will create a new Maven project skeleton usi…

Introduction to Spring Roo

Anyone who has worked with enterpeise Java in the past will know that it can suffer from productivity issues when compared with platforms like .NET. The Spring framework has gone a long way toward addressing these issues and as a result things has improved dramatically since the early days of J2EE. However, enterprise Java still has a long way to go in terms of productivity - The Spring community has recognised this and in an attempt to address the issue they've developed Spring Roo. What is Spring Roo? Spring Roo is an easy-to-use productivity tool for rapidly building enterprise applications in Java. It leverages existing enterprise Java technologies such as Spring MVC, Hibernate, JSP, tiles, Spring security and Maven. Roo provides automatic setup of these technologies into a best-practice application architecture and, if you wish, automatic maintenance of all files required by those technologies (such as XML, JSP, Java etc).  This use of standard technologies allow de…