Tài liệu Spring Roo in Action docx

406 2.2K 0
Tài liệu Spring Roo in Action docx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

MANNING Ken Rimple Srini Penchikala FOREWORD BY BEN ALEX www.it-ebooks.info Spring Roo in Action www.it-ebooks.info www.it-ebooks.info Spring Roo in Action KEN RIMPLE SRINI PENCHIKALA MANNING SHELTER ISLAND www.it-ebooks.info For online information and ordering of this and other Manning books, please visit www.manning.com. The publisher offers discounts on this book when ordered in quantity.  For more information, please contact Special Sales Department Manning Publications Co. 20 Baldwin Road PO Box 261 Shelter Island, NY 11964 Email: orders@manning.com ©2012 by Manning Publications Co. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps. Recognizing the importance of preserving what has been written, it is Manning’s policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end. Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15 percent recycled and processed without the use of elemental chlorine. Manning Publications Co. Development editor: Sebastian Stirling 20 Baldwin Road Technical proofreaders: Alan Stewart, Andrew Swan PO Box 261 Copyeditors: Benjamin Berg, Bob Herbtsman, Shelter Island, NY 11964 Tara McGoldrick Walsh Proofreaders: Katie Tennant, Alyson Brener Typesetter: Dottie Marsico Cover designer: Marija Tudor ISBN 9781935182962 Printed in the United States of America 1 2 3 4 5 6 7 8 9 10 – MAL – 17 16 15 14 13 12 www.it-ebooks.info To my wife, Kris, and my children, Drew, Miles, Jayna, and Justine — K.R. To my parents, Siva Reddy and Lakshmi —S.P. www.it-ebooks.info www.it-ebooks.info vii brief contents PART 1 STARTING SPRING APPS RAPIDLY WITH ROO 1 1 ■ What is Spring Roo? 3 2 ■ Getting started with Roo 25 PART 2 DATABASES AND ENTITIES 55 3 ■ Database persistence with entities 57 4 ■ Relationships, JPA, and advanced persistence 93 PART 3 WEB DEVELOPMENT 125 5 ■ Rapid web applications with Roo 127 6 ■ Advanced web applications 156 7 ■ RIA and other web frameworks 173 8 ■ Configuring security 189 PART 4 INTEGRATION 209 9 ■ Testing your application 211 10 ■ Enterprise services—email and messaging 243 11 ■ Roo add-ons 266 12 ■ Advanced add-ons and deployment 296 www.it-ebooks.info viii BRIEF CONTENTS PART 5 ROO IN THE CLOUD 321 13 ■ Cloud computing 323 14 ■ Workflow applications using Spring Integration 337 www.it-ebooks.info contents foreword xix preface xxi acknowledgments xxiii about this book xxv about the authors xxxi about the cover illustration xxxii PART 1 STARTING SPRING APPS RAPIDLY WITH ROO 1 1 What is Spring Roo? 3 1.1 Configuration is a burden 4 Spring reduces the pain 4 ■ Shifting from code to configuration 5 ■ Spring makes development less painful 6  Batteries still required 8 ■ Those other guys—RAD frameworks 8  Java needs RAD 9 1.2 Enter Spring Roo 10 Installing the Roo shell 10 ■ Launching the shell 11 1.3 Roo by example—the Pizza Shop 12 The pizzashop.roo sample 12 ■ Running the Pizza Shop with Maven 13 ■ Creating toppings—forms 14 ■ Creating a pizza form—dependencies 15 ■ JSON-based web services with the Pizza Shop 16 ■ Wrapping up the walk-through 17 ■ The Pizza  Shop script 17 ix www.it-ebooks.info [...]... 14.3 Adding Spring Integration to your Roo application 340 Course registration: a workflow-based approach 340 Integration patterns used in the solution 342 14.4 Spring Integration add-on for Roo 342 How to install the Roo add-on for Spring Integration Verifying the add-on installation 347 343 14.5 Course registration workflow components 348 Spring Integration flow setup 348 Configuring Spring Integration... www.it-ebooks.info Part 1 Starting Spring apps rapidly with Roo Spring Roo is an excellent framework for the rapid development of Springbased Java applications With a simple command-line shell, it can create and manage Spring applications, adding and configuring components in all of the application architecture layers from SQL to URL, so to say We start exploring Roo with chapter 1, “What is Spring Roo? ” explaining... appear in the code sample as a numbered bullet, and may have corresponding discussion points in the manuscript below the sample Source code The source code for Roo in Action is available at http://github.com/krimple/springroo -in- action- examples You can also find links to the source code repository and a post-publication errata list on the Manning page for this book, http://manning.com/ SpringRooinAction... Creating the jQuery UI add-on 282 The jQuery UI  add-on goals 283 Defining the jQuery install  operations 283 Copying jQuery to the web application 285 Installing jQuery in JavaScript 286  Defining the availability of the jquery setup 287 Installing  the jquery UI setup command 288 Installing your commands 289 Building and installing the add-on 291 Installing jQuery in your project 293 Using the... you enjoy Spring Roo in Action and the significant productivity enhancements it will bring to your applica­ tion development journey BEN ALEX PROJECT FOUNDER SPRING ROO, SPRING SECURITY AND SPRING UAA Twitter @benalexau www.it-ebooks.info preface In the summer of 2009, I learned from Ben Alex about a new technology called Spring Roo This project, based on a command-line shell, promised to bring the agil­... 41 Multimodule projects 42 ■ ■ ■ ■ ■ ■ ■ ■ 2.3 I want my IDE! 43 SpringSource Tool Suite 43 The Roo context menu 44 The Roo shell 45 Showing and hiding Roo ITDs 45 IntelliJ IDEA and other IDEs 47 ■ ■ 2.4 Refactoring, Roo ITDs‚ and leaving Roo 48 Push -in refactoring 48 Verify refactoring 51 out to ITDs 51 Leaving Roo behind 51 ■ ■ Pulling code ■ 2.5 Summary 53 2.6 Resources 53 PART 2 DATABASES AND... developer Craig Walls’s Spring in Action, also published by Manning, is an excellent compan­ ion book for the new Spring developer, and is a good reference to keep nearby when you want additional information about a topic in our book Other good references on these topics are Spring Integration in Action and ActiveMQ in Action, also from Manning Publications Learning by experimenting It’s our hope that... the everyday Spring developer Since my Chariot training colleague and long­ time friend Gordon Dickens was also interested in Roo, we decided to approach Man­ ning about writing a book Unlike so many other times in my life, I was able to posi­ tion myself at just the right time to make the pitch Manning accepted, and you are reading the result In the beginning of 2011, Srini Penchikala, InfoQ author... 269 Installing with  add-on install 271 Using the Git add-on 272 Upgrading Roo add-ons 273 Trusting PGP keys 274 Removing add-ons 275 ■ ■ ■ 11.4 Enough OSGi to be dangerous 275 OSGi bundles and manifests 276 Bundle lifecycle 277 Viewing bundles in the OSGi container 277 Starting and uninstalling a bundle 278 ■ ■ 11.5 Types of Roo add-ons 278 11.6 Roo wrapper add-ons 279 11.7 Adding a language to Roo. .. the substan­ tial advantages of Java Spring Roo in Action is an insightful and comprehensive treatment of Spring Roo Ken Rimple and Srini Penchikala have worked closely with the Roo community and engineering team for over two years, with countless emails, tickets, and forum posts that dig deep into the Roo internals They have carefully tracked Roo s development and inspired multiple improvements The . MANNING Ken Rimple Srini Penchikala FOREWORD BY BEN ALEX www.it-ebooks.info Spring Roo in Action www.it-ebooks.info www.it-ebooks.info Spring Roo in. PART 1 STARTING SPRING APPS RAPIDLY WITH ROO 1 1 What is Spring Roo? 3 1.1 Configuration is a burden 4 Spring reduces the pain 4 ■ Shifting from code

Ngày đăng: 18/02/2014, 06:20

Từ khóa liên quan

Mục lục

  • Spring Roo in Action

  • brief contents

  • contents

  • foreword

  • preface

  • acknowledgments

  • about this book

    • Learning by experimenting

    • Roadmap

    • Things you’ll need

    • Notes on earlier versions of Roo

    • Code conventions

    • Source code

    • Author Online

    • about the authors

    • about the cover illustration

    • Part 1 Starting Spring apps rapidly with Roo

      • What is Spring Roo?

        • 1.1 Configuration is a burden

          • 1.1.1 Spring reduces the pain

          • 1.1.2 Shifting from code to configuration

          • 1.1.3 Spring makes development less painful

          • 1.1.4 Batteries still required

          • 1.1.5 Those other guys—RAD frameworks

Tài liệu cùng người dùng

Tài liệu liên quan