Beginning Spring 2 (eBook)
XXII, 271 Seiten
Apress (Verlag)
978-1-4302-0494-7 (ISBN)
This book will take developers through the first steps of using Spring whilst discussing the relevant technologies that Spring can be integrated with, what to be aware of and how working with Spring makes them easier to use. It focuses on the most useful features of Spring, including persistence and transaction management as well as the complete Spring web tools portfolio, and also introduces 3-tier application design and how to test these designs.
Ideal for J2EE beginners, this book provides a broad insight into Spring's enterprise Java-based technologies, whilst showing how to use Spring correctly.
Dave Minter has adored computers since he was small enough to play in the boxes they came in. He built his first PC from discarded, faulty, and obsolete components, and considers that to be the foundation of his career as an integration consultant. Dave is based in London, where he helps large and small companies build systems that 'just work.' He co-authored Building Portals with the Java Portlet API and Pro Hibernate 3.
Spring has made a remarkable rise since its conception in 2002. Users find Spring the ideal framework to build their applications in J2EE environments. Beginning Spring 2 is the first Spring-authorized book that takes you through the first steps of using Spring, and requires no prior J2EE experience. It discusses relevant integrated technologies that you should be aware of, and illustrates how Spring makes using them easier.The book teaches the correct usage of Spring in applications, and lowers the learning curve on J2EE standards. It covers useful features of Spring without delving too far into complicated features. The authors take advantage of less complex alternatives whenever possible, and shows how Spring can make you more productive in complicated environments where J2EE technologies need to be applied. The book covers the complete Spring web tools portfolio and deals with persistence and transaction management. It also introduces 3 tier application design and how to test these designs.
Dave Minter has adored computers since he was small enough to play in the boxes they came in. He built his first PC from discarded, faulty, and obsolete components, and considers that to be the foundation of his career as an integration consultant. Dave is based in London, where he helps large and small companies build systems that "just work." He co-authored Building Portals with the Java Portlet API and Pro Hibernate 3.
Contents at a Glance 5
Contents 6
About the Author 11
About the Technical Reviewer 12
Acknowledgments 13
Introduction 14
Who This Book Is For 14
How This Book Is Structured 15
Downloading the Code 16
Contacting the Author 16
An Introduction to Spring 17
Frameworks 17
Inversion of Control ( IOC) 18
An Agile Framework 21
Aspect- Oriented Programming ( AOP) 22
Libraries 23
Spring and Web Applications 24
Documentation 26
Other Tools 27
Conclusion 28
Presenting the Sample Application 29
Rationale 29
Architecture of the Sample Application 29
Specification 33
Maven 35
Configuration Files 42
Tests 42
The Web Application 42
Conclusion 43
The Heart of Spring: Inversion of Control 44
Benefits and Disadvantages of DI 44
Coupling 45
The Need for a Framework 49
The Container 49
XML Configuration 53
XML Schema – Based Configuration 60
Annotation- Based Configuration 62
Conclusion 69
Data Access 70
Persistence Frameworks 70
DAOs 71
Templates and Support Classes 74
Plain Old JDBC 76
Hibernate 79
Conclusion 88
The Service Layer, Transaction Management, and AOP 89
Implementing Services in Spring 90
Transactions 92
Aspect- Oriented Programming ( AOP) 100
Conclusion 119
Web Applications 120
The Model View Controller Pattern 120
Managing Contexts 121
Spring MVC 123
Spring Web Flow 133
Forms and Binding 139
Views 140
Filters 145
Conclusion 149
Security 150
Securing the Web Components 151
Making Security Decisions 165
Securing the Service Layer 167
Conclusion 169
Sending E-mail 170
Using the Mail Sender 171
Sending Plain Text 173
Sending Formatted HTML 176
Including Inline Images and Attachments 179
Conclusion 183
Remoting 184
Remoting Mechanisms 184
Conclusion 204
Testing 205
Unit Testing 206
Integration Testing 238
Web Testing 238
Regression Testing 239
Conclusion 239
The Spring IDE Plug-in for Eclipse 240
Installing the Plug- in 240
Managing Bean Configurations 243
Managing Spring Web Flow Configuration 249
Using File- Creation Wizards 254
Conclusion 255
Index 256
Erscheint lt. Verlag | 31.8.2008 |
---|---|
Zusatzinfo | XXII, 271 p. |
Verlagsort | Berkeley |
Sprache | englisch |
Themenwelt | Informatik ► Programmiersprachen / -werkzeuge ► Java |
Schlagworte | action • C programming language • Eclipse • J2EE • Logic |
ISBN-10 | 1-4302-0494-X / 143020494X |
ISBN-13 | 978-1-4302-0494-7 / 9781430204947 |
Haben Sie eine Frage zum Produkt? |
Größe: 5,0 MB
DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasserzeichen und ist damit für Sie personalisiert. Bei einer missbräuchlichen Weitergabe des eBooks an Dritte ist eine Rückverfolgung an die Quelle möglich.
Dateiformat: PDF (Portable Document Format)
Mit einem festen Seitenlayout eignet sich die PDF besonders für Fachbücher mit Spalten, Tabellen und Abbildungen. Eine PDF kann auf fast allen Geräten angezeigt werden, ist aber für kleine Displays (Smartphone, eReader) nur eingeschränkt geeignet.
Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.
Zusätzliches Feature: Online Lesen
Dieses eBook können Sie zusätzlich zum Download auch online im Webbrowser lesen.
Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.
aus dem Bereich