Spring Roo in Action
Ken Rimple and Srini Penchikala
  • April 2012
  • ISBN 9781935182962
  • 408 pages

An insightful and comprehensive treatment.

Ben Alex, Project Founder, Spring Roo

Spring Roo in Action is a unique book that teaches you how to code Java in Roo, with a particular focus on Spring-based applications. Through hands-on examples, you'll learn how Roo creates well-formed application structures and supports best practices and tools. Plus, you'll get a quick-and-dirty guide to setting up Roo effectively in your environment.

Table of Contents detailed table of contents




about this book

about the authors

about the cover illustration

Part 1 Starting Spring apps rapidly with Roo

1. What is Spring Roo?

1.1. Configuration is a burden

1.2. Enter Spring Roo

1.3. Roo by example—the Pizza Shop

1.4. Roo application architecture models

1.5. Summary

1.6. Resources

2. Getting started with Roo

2.1. Working with the Roo shell

2.2. How Roo manages your projects

2.3. I want my IDE!

2.4. Refactoring, Roo ITDs, and leaving Roo

2.5. Summary

2.6. Resources

Part 2 Databases and entities

3. Database persistence with entities

3.1. Your business objects and persistence

3.2. Working with entities

3.3. Validating Courses with Bean Validation

3.4. Searching with finders

3.5. Leaving Active Record—JPA repositories

3.6. Code samples

3.7. Summary

3.8. Resources

4. Relationships, JPA, and advanced persistence

4.1. Object relations: it’s all relative

4.2. A sample Course Manager database

4.3. Course Manager relationships

4.4. Reverse engineering your database

4.5. Adding a service layer

4.6. Using JPA directly

4.7. NoSQL databases with MongoDB

4.8. Summary

4.9. Resources

Part 3 Web development

5. Rapid web applications with Roo

5.1. The Spring MVC web framework

5.2. Roo Spring MVC quick-start

5.3. Web scaffolding for entities

5.4. Accessing other Spring beans

5.5. Summary

5.6. Resources

6. Advanced web applications

6.1. Customizing Roo CRUD views

6.2. Advanced customization

6.3. View layouts, theming, and localization

6.4. Summary

6.5. Resources

7. RIA and other web frameworks

7.1. JavaScript and Ajax

7.2. Google Web Toolkit

7.3. Using JavaServer Faces

7.4. Other Roo UI frameworks

7.5. Summary

7.6. Resources

8. Configuring security

8.1. Installing Spring Security

8.2. Securing a sample application

8.3. Testing security setup

8.4. Adding security event logging

8.5. Summary

8.6. Resources

Part 4 Integration

9. Testing your application

9.1. Roo testing philosophy

9.2. Stubbed unit tests

9.3. Unit tests using mock objects

9.4. Testing in-container with Roo

9.5. Web testing with Selenium

9.6. Improving your testing

9.7. Summary

9.8. Resources

10. Enterprise services—email and messaging

10.1. Roo integration with enterprise services

10.2. Defining the sample Course Manager use cases

10.3. Setting up JMS in the Course Manager

10.4. Adding email support for course registration

10.5. Asynchronous messaging for registration confirmation

10.6. Monitoring messaging activity

10.7. Summary

10.8. Resources

11. Roo add-ons

11.1. Extending Roo with add-ons

11.2. How add-ons work

11.3. Working with published Roo add-ons

11.4. Enough OSGi to be dangerous

11.5. Types of Roo add-ons

11.6. Roo wrapper add-ons

11.7. Adding a language to Roo with i18n

11.8. A simple add-on: jQuery UI

11.9. Summary

11.10. Resources

12. Advanced add-ons and deployment

12.1. Advanced add-ons

12.2. To create an advanced add-on, you need Coffee(Script)

12.3. Key add-on beans and services

12.4. Publishing your add-ons

12.5. Deploying to an OBR

12.6. Submitting your add-on

12.7. Summary

Part 5 Roo in the cloud

13. Cloud computing

13.1. What is cloud computing?

13.2. Cloud Foundry

13.3. Roo add-on for Cloud Foundry

13.4. Deploying the Course Manager application to the cloud

13.5. Managing cloud services

13.6. Application monitoring in the cloud

13.7. The road ahead

13.8. Summary

13.9. Resources

14. Workflow applications using Spring Integration

14.1. Workflow applications

14.2. Using the Spring Integration framework

14.3. Adding Spring Integration to your Roo application

14.4. Spring Integration add-on for Roo

14.5. Course registration workflow components

14.6. Summary

14.7. Resources


About the Technology

Roo is a lightweight Java console shell that simplifies compile-time tasks. It improves productivity by enforcing correct coding practices and patterns and integrates with mainstream Java technologies, including ActiveMQ, GWT, JPA, and OSGi. And, when you finish coding, it gets out of the way so there's no runtime impact.

About the book

Spring Roo in Action teaches you to code Java more efficiently using Roo. With the help of many examples, it shows you how to build application components from the database layer to the user interface. The book takes a test-first approach and points out how Roo can help automate many of the mundane details of coding Java apps. Along the way, you'll address important topics like security, messaging, and cloud computing.

What's inside

  • Learn Roo from the ground up
  • Integrate with existing projects
  • Create custom add-ons
  • Use Roo with Spring

About the reader

This book is for Java developers who want to get more productive by using Roo.

About the authors

Ken Rimple is a veteran Java developer, trainer, mentor, and head of Chariot's Education Services team, a VMWare training partner. He lives in the Philadelphia area. Srini Penchikala is a security architect with over 16 years of experience in software design and development. He lives in Austin, Texas.

eBook $39.99 pdf + ePub + kindle + liveBook

placing your order...

Don't refresh or navigate away from the page.

FREE domestic shipping on three or more pBooks