1. Trang chủ
  2. » Khoa Học Tự Nhiên

Professional java development with the spring framework (200

1,2K 281 0

Đ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

Thông tin cơ bản

Định dạng
Số trang 1.167
Dung lượng 4,61 MB

Nội dung

Professional Java Development with the Spring Framework byRod Johnsonet al John Wiley & Sons 2005 (672 pages) ISBN:0764574833 Written by the lead developers of the Spring Framework, this authoritative guide shows you not only what spring can do but why, explaining its functionality and motivation to help you use all parts of the framework to develop successful applications Table of Contents Professional Java Development with the Spring Framework Introduction Chapter 1 - Introducing the Spring Framework Chapter 2 - The Bean Factory and Application Context Chapter 3 - Advanced Container Concepts Chapter 4 - Spring and AOP Chapter 5 - DAO Support and JDBC Framework Chapter 6 - Transaction and Resource Management Chapter 7 - Object/Relational Mapping Chapter 8 - Lightweight Remoting Chapter 9 - Supporting Services Chapter 10 - Acegi Security System for Spring Chapter 11 - Spring and EJB Chapter 12 - Web MVC Framework Chapter 13 - Web View Technologies Chapter 14 - Integrating with Other Web Frameworks Chapter 15 - The Sample Application Chapter 16 - Conclusion Appendix A - Requirements for the Sample Application Index List of Figures List of Sidebars Back Cover The Spring Framework is a major open source application development framework that makes Java/J2EE development easier and more productive This book shows you not only what spring can do but why, explaining its functionality and motivation to help you use all parts of the framework to develop successful applications You will be guided through all the Spring features and see how they form a coherent whole In turn, this will help you understand the rationale for Spring’s approach, when to use Spring, and how to follow best practices All this is illustrated with a complete sample application When you finish the book, you will be well equipped to use Spring effectively in everything from simple Web applications to complex enterprise applications What you will learn from this book The core Inversion of Control container and the concept of Dependency Injection Spring’s Aspect Oriented Programming (AOP) framework and why AOP is important in J2EE development How to use Spring’s programmatic and declarative transaction management services effectively Ways to access data using Spring’s JDBC functionality, iBATIS SQL Maps, Hibernate, and other O/R mapping frameworks Spring services for accessing and implementing EJBs Spring’s remoting framework Professional Java Development with the Spring Framework Rod Johnson Juergen Hoeller Alef Arendsen Thomas Risberg Colin Sampaleanu Professional Java™ Development with the Spring Framework Published by Wiley Publishing, Inc 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com Copyright © 2005 by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada ISBN-13: 978-0-7645-7483-2 ISBN-10: 0-7645-7483-3 Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 1B/RV/QW/QV/IN Library of Congress Cataloging-in-Publication Data: Professional Java development with the Spring Framework/Rod Johnson [et al.] p cm Includes index ISBN-13: 978-0-7645-7483-2 (paper/website) ISBN-10: 0-7645-7483-3 (paper/website) Java (Computer program language) 2 Application software –Development I Johnson, Rod, Ph.D QA76.73.J38P74585 2005 005.13'3–dc22 2005013970 No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600 Requests to the Publisher for permission should be addressed to the Legal Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4355, or online at http://www.wiley.com/go/permissions LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: THE PUBLISHER AND THE AUTHOR MAKE NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS WORK AND SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE NO WARRANTY MAY BE CREATED OR EXTENDED BY SALES OR PROMOTIONAL MATERIALS THE ADVICE AND STRATEGIES CONTAINED HEREIN MAY NOT BE SUITABLE FOR EVERY SITUATION THIS WORK IS SOLD WITH THE UNDERSTANDING THAT THE PUBLISHER IS NOT ENGAGED IN RENDERING LEGAL, ACCOUNTING, OR OTHER PROFESSIONAL SERVICES IF PROFESSIONAL ASSISTANCE IS REQUIRED, THE SERVICES OF A COMPETENT PROFESSIONAL PERSON SHOULD BE SOUGHT NEITHER THE PUBLISHER NOR THE AUTHOR SHALL BE LIABLE FOR DAMAGES ARISING HEREFROM THE FACT THAT AN ORGANIZATION OR WEBSITE IS REFERRED TO IN THIS WORK AS A CITATION AND/OR A POTENTIAL SOURCE OF FURTHER INFORMATION DOES NOT MEAN THAT THE AUTHOR OR THE PUBLISHER ENDORSES THE INFORMATION THE ORGANIZATION OR WEBSITE MAY PROVIDE OR RECOMMENDATIONS IT MAY MAKE FURTHER, READERS SHOULD BE AWARE THAT INTERNET WEBSITES LISTED IN THIS WORK MAY HAVE CHANGED OR DISAPPEARED BETWEEN THEN THIS WORK WAS WRITTEN AND WHEN IT IS READ For general information on our other products and services please contact our Customer Care Department within the United States at (800) 762-2974, outside the United States at (317) 572-3993 or fax (317) 5724002 Trademarks: Wiley, the Wiley logo, Wrox, the Wrox logo, Programmer to Programmer, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc and/or its affiliates, in the United States and other countries, and may not be used without written permission Java is a trademark of Sun Microsystems, Inc All other trademarks are the property of their respective owners Wiley Publishing, Inc., is not associated with any product or vendor mentioned in this book Wiley also publishes its books in a variety of electronic formats Some content that appears in print may not be available in electronic books About the Authors Rod Johnson is the founder of the Spring Framework and a well-known expert on Java and J2EE Rod holds a Ph.D from Sydney University Originally from a C/C++ background, he has been involved with Java and J2EE since their releases as a developer, architect, and consultant He is the author of two of the most popular and influential books on J2EE: Expert One-on-One J2EE Design and Development (Wrox, 2002), and J2EE without EJB (Wrox, 2004, with Juergen Hoeller) Both have played a major role in the rise of "agile" J2EE, and the move away from overly complex traditional J2EE architecture Rod is co-lead of the Spring Framework He is a popular conference speaker and regularly appears at leading Java events in the US, Europe, and Asia He serves in the Java Community Process (JCP) on the expert groups of several JSRs He also has wide consulting experience in banking and finance, insurance, software, and media He is CEO of Interface21 (www.interface21.com), a consultancy devoted to providing expert J2EE and Spring Framework services He is actively involved with client projects as well as Spring development For Kerry Juergen Hoeller is co-founder of Interface21, the company providing commercial Spring services from the source He is a key driver of Spring development and has been release manager since Spring's inception His special interests and responsibilities in the project cover a wide variety of topics, from the core container to transaction management, data access, and lightweight remoting Juergen has a Master's degree in computer science from the University of Linz, specializing in Java, OO modeling, and software engineering He is co-author of Expert One-on-One J2EE Development without EJB (Wiley, 2004) and regularly presents at conferences and other events He is also active in many community forums, including TheServerSide To Eva, for her continuing love and support, and for understanding that there is no separation between working time and spare time in the Spring world Alef Arendsen studied computer sciences at the University of Utrecht Later, also in Utrecht, Alef started his first company After this turned out to be too little a challenge, Alef went to work for SmartHaven, an Amsterdam-based VC- funded company providing J2EE components for knowledge management applications He was responsible for streamlining the development process and designing parts of the component infrastructure In early 2002, together with Joost van de Wijgerd, Alef founded JTeam, a software company providing J2EE development services Alef is a core Spring committer and, while remaining involved with JTeam, he is now a consultant for Interface21 He is a frequent speaker at public conferences Alef can be reached by email at alef@interface21.com You can also read his blog at http://blog.arendsen.net To Mas, my nephew, who frequently cheered me up and reminded me of things other than work Thomas Risberg is a database developer working for TargetrRx, a pharmaceutical market research company located in Horsham, Pennsylvania He has many years of experience working with both large and small organizations on various database-related projects ranging from simple data entry programs to large data warehousing implementations Thomas is a reformed COBOL programmer who came to Java via Xbase, Visual Basic, and PL/SQL He served as an Oracle DBA for a couple of years but decided that software development was really where his heart was Thomas has a B.A degree in information processing from the University of Stockhom, Sweden He is a certified Oracle Professional DBA and a Sun Certified Java Programmer and J2EE Architect Thomas joined the Spring Framework development team in early 2003 and is mostly involved in evolving the JDBC layer His non-computer– related interests are soccer, photography, and travel Colin Sampaleanu has had a long and varied career spanning almost two decades—after a childhood spent tinkering with computers and software—including experience developing for and managing his own retail software company, other years in the C++ shrinkwrap and enterprise software space, experience with Java since the early days of the language, and a complete focus on enterprise Java since the late nineties Colin is a currently a principal partner at Interface21, which specializes in Spring training, consulting, and support Prior to joining Interface21, Colin was Chief Architect at a software incubator / VC As a core Spring developer and Interface21 principal, Colin spends much of his time talking and writing about the benefits of Spring, and promoting agile software development architectures and methodologies in general To Nina, for her continued love and support, and for understanding that despite our best intentions, in this field 9–5 is often just the first half of the workday To Alec and Maia, for their simple innocence and joy, and for reminding me that there are other things in life besides computers Credits Executive Editor Robert Elliott Development Editor Adaobi Obi Tulton Technical Editors Peter den Haan Qi Zhang Aleksandar Seovic Erik Janssens Copy Editor Nancy Rapoport Editorial Manager Mary Beth Wakefield Vice President & Executive Group Publisher Richard Swadley Vice President and Publisher Joseph B Wikert Project Coordinator Kristie Rees Graphics and Production Specialists April Farling List of Figures Chapter 1: Introducing the Spring Framework Figure 1-1 Chapter 2: The Bean Factory and Application Context Figure 2-1 Chapter 4: Spring and AOP Figure 4-1 Figure 4-2 Figure 4-3 Chapter 5: DAO Support and JDBC Framework Figure 5-1 Figure 5-2 Figure 5-3 Figure 5-4 Figure 5-5 Chapter 6: Transaction and Resource Management Figure 6-1 Figure 6-2 Chapter 10: Acegi Security System for Spring Figure 10-1 Figure 10-2 Figure 10-3 Figure 10-4 Figure 10-5 Figure 10-6 Figure 10-7 Figure 10-8 Chapter 12: Web MVC Framework Figure 12-1 Figure 12-2 Figure 12-3 Figure 12-4 Figure 12-5 Figure 12-6 Figure 12-7 Figure 12-8 Chapter 13: Web View Technologies Figure 13-1 Figure 13-2 Chapter 14: Integrating with Other Web Frameworks Figure 14-1 Chapter 15: The Sample Application Figure 15-1 Figure 15-2 Figure 15-3 Figure 15-4 Figure 15-5 Figure 15-6 Figure 15-7 Figure 15-8 Appendix A: Requirements for the Sample Application Figure A-1 Figure A-2 Figure A-3 Figure A-4 Figure A-5 Figure A-6 Figure A-7 Figure A-8 List of Sidebars Chapter 9: Supporting Services Choosing an Implementation Language Chapter 16: Conclusion Web Tier Design Principles ... Professional Java Development with the Spring Framework Rod Johnson Juergen Hoeller Alef Arendsen Thomas Risberg Colin Sampaleanu Professional Java Development with the Spring Framework Published by... read the FAQs, click the FAQ link on any P2P Chapter 1: Introducing the Spring Framework Why Spring? The Spring Framework is an open source application framework that aims to make J2EE development easier... in specific areas The Spring Framework grew out of this experience of using J2EE without frameworks, or with a mix of in-house frameworks However, unlike Struts, Hibernate, and most other frameworks, Spring offers services for

Ngày đăng: 25/03/2019, 17:09