Book description
In this second edition, Spring in Action has been completely updated to cover the exciting new features of Spring 2.0. The book begins by introducing you to the core concepts of Spring and then quickly launches into a hands-on exploration of the framework. Combining short code snippets and an ongoing example developed throughout the book, it shows you how to build simple and efficient J2EE applications. You will see how to solve persistence problems, handle asynchronous messaging, create and consume remote services, build web applications, and integrate with most popular web frameworks. You will learn how to use Spring to write simpler, easier to maintain code so that you can focus on what really matters — your critical business needs.
About the Technology
Spring is a fresh breeze blowing over the Java landscape. Based on the principles of dependency injection, interface-oriented design, and aspect-oriented programming, Spring combines enterprise application power with the simplicity of plain-old Java objects (POJOs).
About the Book
What's Inside
About the Reader
About the Authors
Craig Walls is a software developer with over 12 years' experience and coauthor of XDoclet in Action. He is a zealous promoter of the Spring Framework, speaking frequently at local user groups and conferences and writing about Spring on his blog. When he's not slinging code, Craig spends as much time as he can with his wife, two daughters, 7 birds, 4 dogs, 2 cats, and an ever-fluctuating number of tropical fish. Craig lives in Denton, Texas.
An avid supporter of open source Java technologies, Ryan Breidenbach has developed Java web applications for the past seven years. He lives in Coppell, Texas.
Quotes
"5/5 stars...great instructive book."
- Pedot Nicola, Java User Group Trento
You will learn how to use Spring to write simpler, easier to maintain code so that you can focus on what really matters—your critical business needs.
- Review, Springframework.org
Spring in Action is encyclopedic and eminently readable. Five stars all around!
- Review, JavaLobby.org
Superbly organized and fluently written.
- Review, Internet Bookwatch
Table of contents
- Copyright
- Praise for the First Edition
- Preface
- Preface to the First Edition
- Acknowledgments
- About this Book
- About the Title
- About the Cover Illustration
-
1. Core Spring
-
1. Springing into action
-
1.1. What is Spring?
-
1.1.1. Spring modules
- The core container
- Application context module
- Spring’s AOP module
- JDBC abstraction and the DAO module
- Object-relational mapping (ORM) integration module
- Java Management Extensions (JMX)
- Java EE Connector API (JCA)
- The Spring MVC framework
- Spring Portlet MVC
- Spring’s web module
- Remoting
- Java Message Service (JMS)
-
1.1.1. Spring modules
- 1.2. A Spring jump start
- 1.3. Understanding dependency injection
- 1.4. Applying aspect-oriented programming
- 1.5. Summary
-
1.1. What is Spring?
- 2. Basic bean wiring
-
3. Advanced bean wiring
- 3.1. Declaring parent and child beans
- 3.2. Applying method injection
- 3.3. Injecting non-Spring beans
- 3.4. Registering custom property editors
- 3.5. Working with Spring’s special beans
- 3.6. Scripting beans
- 3.7. Summary
- 4. Advising beans
-
1. Springing into action
-
2. Enterprise Spring
- 5. Hitting the database
- 6. Managing transactions
-
7. Securing Spring
- 7.1. Introducing Spring Security
- 7.2. Authenticating users
- 7.3. Controlling access
- 7.4. Securing web applications
- 7.5. View-layer security
- 7.6. Securing method invocations
- 7.7. Summary
-
8. Spring and POJO-based remote services
- 8.1. An overview of Spring remoting
- 8.2. Working with RMI
- 8.3. Remoting with Hessian and Burlap
- 8.4. Using Spring’s HttpInvoker
- 8.5. Spring and web services
- 8.6. Summary
- 9. Building contract-first web services in Spring
-
10. Spring messaging
- 10.1. A brief introduction to JMS
- 10.2. Using JMS with Spring
- 10.3. Creating message-driven POJOs
- 10.4. Using message-based RPC
- 10.5. Summary
- 11. Spring and Enterprise JavaBeans
- 12. Accessing enterprise services
-
3. Client-side Spring
-
13. Handling web requests
- 13.1. Getting started with Spring MVC
- 13.2. Mapping requests to controllers
- 13.3. Handling requests with controllers
- 13.4. Handling exceptions
- 13.5. Summary
- 14. Rendering web views
-
15. Using Spring Web Flow
- 15.1. Getting started with Spring Web Flow
- 15.2. Laying the flow groundwork
- 15.3. Advanced web flow techniques
- 15.4. Integrating Spring Web Flow with other frameworks
- 15.5. Summary
- 16. Integrating with other web frameworks
-
13. Handling web requests
- A. Setting up Spring
- B. Testing with (and without) Spring
Product information
- Title: Spring in Action, Second Edition
- Author(s):
- Release date: August 2007
- Publisher(s): Manning Publications
- ISBN: 9781933988139
You might also like
book
Spring in Action, Third Edition
Totally revised for Spring 3.0, Spring in Action, Third Edition is a hands-on guide to the …
book
Spring in Action, Fifth Edition
Spring in Action, 5th Edition is the fully updated revision of Manning's bestselling Spring in Action. …
book
Spring in Action, Sixth Edition
If you need to learn Spring, look no further than this widely beloved and comprehensive guide! …
book
Spring Microservices in Action, Second Edition
By dividing large applications into separate self-contained units, Microservices are a great step toward reducing complexity …