Contents


preface
acknowledgments
about this book
about the cover illustration

Part 1 Core Spring

Chapter 1 Springing into action
Simplifying Java development
Containing your beans
Surveying the Spring landscape
What’s new in Spring
Summary
Chapter 2 Wiring beans
Declaring beans
Injecting into bean properties
Wiring with expressions
Summary
Chapter 3 Minimizing XML configuration in Spring
Automatically wiring bean properties
Wiring with annotations
Automatically discovering beans
Using Spring’s Java-based configuration
Summary
Chapter 4 Aspect-oriented Spring
What’s aspect-oriented programming?
Selecting join points with pointcuts
Declaring aspects in XML
Annotating aspects2
Injecting AspectJ aspects
Summary

Part 2 Spring application essentials

Chapter 5 Hitting the database
Learning Spring’s data access philosophy
Configuring a data source
Using JDBC with Spring
Integrating Hibernate with Spring
Spring and the Java Persistence API
Summary
Chapter 6 Managing transactions
Understanding transactions
Choosing a transaction manager
Programming transactions in Spring
Declaring transactions
Summary
Chapter 7 Building web applications with Spring MVC
Getting started with Spring MVC
Writing a basic controller
Handling controller input
Processing forms
Handling file uploads
Summary
Chapter 8 Working with Spring Web Flow
Installing Spring Web Flow
The components of a flow
Putting it all together: the pizza flow
Securing web flows
Summary
Chapter 9 Securing Spring
Introducing Spring Security
Securing web requests
Securing view-level elements
Authenticating users
Securing methods
Summary

Part 3 Integrating Spring

Chapter 10 Working with remote services
An overview of Spring remoting
Working with RMI
Exposing remote services with Hessian and Burlap
Using Spring’s HttpInvoker
Publishing and consuming web services
Summary
Chapter 11 Giving Spring some REST
Getting REST
Writing resource-oriented controllers
Representing resources
Writing REST clients
Submitting RESTful forms
Summary
Chapter 12 Messaging in Spring
A brief introduction to JMS
Setting up a message broker in Spring
Using Spring’s JMS template
Creating message-driven POJOs
Using message-based RPC
Summary 332
Chapter 13 Managing Spring beans with JMX
Exporting Spring beans as MBeans
Remoting MBeans
Handling notifications
Summary
Chapter 14 Odds and ends
Externalizing configuration
Wiring JNDI objects
Sending email
Scheduling and background tasks
Summary
The end...?


index