Spring Roo 1.1 Cookbook


Spring Roo 1.1 Cookbook
eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
$25.49
save 15%!
Print + free eBook + free PacktLib access to the book: $79.98    Print cover: $49.99
$49.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Learn what goes on behind the scenes when using Spring Roo and how to migrate your existing Spring applications to use Spring Roo
  • Incrementally develop a Flight Booking enterprise application from scratch as various features of Spring Roo are introduced
  • Develop custom add-ons to extend Spring Roo features
  • Full of tips and code for addressing common concerns related to developing a real enterprise application using Spring Roo

Book Details

Language : English
Paperback : 460 pages [ 235mm x 191mm ]
Release Date : September 2011
ISBN : 1849514585
ISBN 13 : 9781849514583
Author(s) : Ashish Sarin
Topics and Technologies : All Books, Application Development, Cookbooks, Java, Open Source, Web Development

Table of Contents

Preface
Chapter 1: Getting Started with Spring Roo
Chapter 2: Persisting Objects Using JPA
Chapter 3: Advanced JPA Support in Spring Roo
Chapter 4: Web Application Development with Spring Web MVC
Chapter 5: Web Application Development with GWT, Flex, and Spring Web Flow
Chapter 6: Emailing, Messaging, Spring Security, Solr, and GAE
Chapter 7: Developing Add-ons and Removing Roo from Projects
Index
  • Chapter 1: Getting Started with Spring Roo
    • Introduction
    • Setting up Roo
    • Using Spring Roo with Eclipse/STS
    • Getting help and hints from Roo
    • Creating a Roo project
    • Importing a Roo project into Eclipse or IntelliJ IDEA IDE
    • Configuring logging
    • Viewing properties defined in a properties file
    • Managing properties defined in a properties file
    • Creating a Java class
    • Moving existing Spring projects to use Spring Roo
    • Adding attributes to a Java class
    • Creating a Java interface
    • Referring to a type from the Roo shell
    • Creating application artifacts from Roo script
    • Chapter 2: Persisting Objects Using JPA
      • Introduction
      • Setting up a JPA provider for your project
      • Viewing database configuration properties
      • Managing database configuration properties
      • Creating persistent entities
      • Adding JSR 303 constraints to persistent fields
      • Controlling auto-generated methods of persistent entities
      • Creating integration tests for persistent entities
      • Creating new 'data on demand' for testing entities
      • Creating mock tests for persistent entities
      • Executing persistent entities tests
      • Creating applications that interact with multiple databases
      • Packaging your Roo project
      • Chapter 3: Advanced JPA Support in Spring Roo
        • Introduction
        • Viewing candidate dynamic finder methods
        • Adding dynamic finder methods to an entity
        • Creating a many-to-one (or one-to-one) relationship between entities
        • Creating a one-to-many (or many-to-many) relationship between entities
        • Creating a mapped superclass
        • Customizing Roo-generated identifier definition
        • Generating database metadata
        • Creating entities from a database
        • Chapter 4: Web Application Development with Spring Web MVC
          • Introduction
          • Auto-generating Spring MVC controllers and JSPX views from JPA entities
          • Packaging, deploying, and using a Roo-generated Spring MVC application
          • Modifying Roo-generated views
          • Round-tripping support in Spring Roo for web controllers and views
          • Creating a Spring MVC controller for a specific JPA entity
          • Manually creating a Spring MVC controller for a JPA entity
          • Adding static views to a Roo-generated web application
          • Internationalizing Roo-generated web applications
          • Adding or modifying themes generated by Roo
          • Adding JSON support to domain objects and controllers
          • Creating and executing Selenium tests for web controllers
            • Chapter 6: Emailing, Messaging, Spring Security, Solr, and GAE
              • Introduction
              • Sending e-mails using JavaMail API
              • Sending and receiving JMS messages
              • Configuring Spring Security for your application
              • Using Spring Security with Apache Directory Server
              • Deploying a GWT application on GAE
              • Deploying a Spring Web MVC application on GAE
              • Adding search capability to your domain model with Solr
              • Chapter 7: Developing Add-ons and Removing Roo from Projects
                • Introduction
                • Setting up GnuPG for add-on development
                • Installing an installable add-on
                • Developing a simple add-on
                • Developing an advanced add-on
                • Converting non-OSGi JDBC drivers into OSGi-compliant bundles
                • Removing Roo with push-in refactoring
                • Adding Roo to a project using pull-out refactoring
                • Upgrading to the latest version of Roo

                Ashish Sarin

                Ashish Sarin has more than 11 years of experience architecting and developing web applications and portals using Java EE and the Portlets API. He has authored many articles on portlets and rich internet applications using Spring, Liferay, DWR, DOJO, JSF, and Spring Portlet MVC. He is also the author of Portlets in Action published by Manning Publications.
                Sorry, we don't have any reviews for this title yet.

                Code Downloads

                Download the code and support files for this book.


                Submit Errata

                Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

                Sample chapters

                You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                Frequently bought together

                Spring Roo 1.1 Cookbook +    Ext.NET Web Application Development =
                50% Off
                the second eBook
                Price for both: $43.05

                Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                What you will learn from this book

                • Get started with the Spring Roo development tool
                • Create the persistence layer of an application using JPA support in Spring Roo
                • Create web applications using Spring Web MVC, Spring Web Flow, GWT, Flex-BlazeDS, and so on
                • Extend Spring Roo by creating custom add-ons
                • Remove Spring Roo from enterprise applications
                • Migrate existing applications to use Spring Roo
                • Test enterprise applications using Spring's TestContext framework (for the persistence layer) and Selenium (for web-tier controllers)
                • Get tips on how to effectively use Spring Roo for developing enterprise applications
                • Create applications for Google App Engine using Spring Roo
                • Learn about round-tripping support in Spring Roo
                • Add security using Spring Security support in Spring Roo

                In Detail

                Spring Roo is an easy-to-use productivity tool for rapidly developing Java enterprise applications using well-recognized frameworks such as Spring, Hibernate, AspectJ, Spring Web Flow, Spring Security, GWT, and so on. Spring Roo takes care of creating maven-enabled projects, enterprise application architecture based on your choice of technologies, unit/integration tests based on your choice of testing framework, and so on. The bottom line is that if you're using Spring, then you must consider using Spring Roo for increased productivity.

                Spring Roo 1.1 Cookbook brings together a collection of recipes that demonstrate how the Spring Roo developer tool simplifies rapidly developing enterprise applications using standard technologies/frameworks such as JPA, GWT, Spring, Flex, Spring Web Flow, Spring Security, and so on. It introduces readers to developing enterprise applications for the real world using Spring Roo tool. The book starts off with basic recipes to make readers comfortable with using Spring Roo tool. As the book progresses, readers are introduced to more sophisticated features supported by Spring Roo in the context of a Flight Booking application. In a step-by-step by fashion, each recipe shows how a particular activity is performed, what Spring Roo does when a command is executed, and why it is important in the context of the application being developed.

                Initially, you make a quick start with using Spring Roo through some simple recipes. Then you learn how Spring Roo simplifies creating the persistence layer of an enterprise application using JPA. You are introduced to the various roo commands to create JPA entities, create relationships between JPA entities, create integration tests using Spring TestContext framework, and so on. Following this, the book shows you how Spring Roo simplifies creating the web layer of an enterprise application using Spring Web MVC, Spring Web Flow, and how to create selenium tests for controller objects.

                Subsequently, we focus on using Spring-BlazeDS, GWT, JSON, and so on. Spring Roo commands that are used to incorporate e-mail/messaging features into an enterprise application are demonstrated next. Finally, we wrap it up with some miscellaneous recipes that show how to extend Spring Roo via add-ons, incorporate security, create cloud-ready applications, remove Spring Roo from your enterprise application, and so on.

                A fast-paced guide that helps you effectively use Spring Roo for developing enterprise applications

                Approach

                This is a cookbook full of recipes with the essential code explained clearly and comprehensively. The recipes are organized so well that you will have no problems in using this cookbook as a reference too.

                Who this book is for

                Spring Roo 1.1 Cookbook is for developers new to the Spring Roo tool but with experience developing applications using Spring framework, AspectJ, JPA, GWT, and technologies/frameworks supported by Spring Roo. If you are new to the Spring framework, then it is recommended to refer to a text covering Spring, before reading this Cookbook.

                Code Download and Errata
                Packt Anytime, Anywhere
                Register Books
                Print Upgrades
                eBook Downloads
                Video Support
                Contact Us
                Awards Voting Nominations Previous Winners
                Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                Resources
                Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software