Book description
The Spring Framework is designed from the ground up to make it easier than ever to develop server-side applications with Java Enterprise Edition. With this book as your guide, you'll quickly learn how to use the latest features of Spring 2 and other open-source tools that can be downloaded for free on the web. With each subsequent chapter, you'll explore an area of Spring application design and development as you walk through the steps involved in building a larg production-scale example.
Table of contents
- Copyright
- About the Authors
- Credits
- Acknowledgments
- Introduction
-
1. Jump Start Spring 2
- 1.1. All About Spring
- 1.2. Focus on Simplicity
- 1.3. Applying Spring
- 1.4. Adding Aspect-Oriented Programming to the Mix
- 1.5. Beyond Plumbing — Spring API Libraries
- 1.6. Summary
- 2. Designing Spring Applications
-
3. Spring Persistence Using JPA
- 3.1. Java Persistence
- 3.2. DAO — Unifying Data Access
-
3.3. Spring and JPA
-
3.3.1. Entities
- 3.3.1.1. Entity Metadata
- 3.3.1.2. Entity Manager
- 3.3.1.3. Container-Managed Entity Managers
- 3.3.1.4. Application-Managed Entity Managers
- 3.3.1.5. Entity States
- 3.3.1.6. Entity Relationships
- 3.3.1.7. One-to-One Entity Relationship
- 3.3.1.8. One-to-Many Entity Relationship
- 3.3.1.9. Many-to-One Entity Relationship
- 3.3.1.10. Many-to-Many Relationship
- 3.3.1.11. Entity Relationship Direction
- 3.3.1.12. Entity Inheritance Mapping
- 3.3.1.13. Persisting Entities
- 3.3.1.14. Removing Entity Instances
- 3.3.1.15. Creating Database Queries
- 3.3.1.16. Persistence Unit
- 3.3.1.17. Persistence Context
- 3.3.2. Spring as a JPA Container
- 3.3.3. About JPA APIs
- 3.3.4. JPA the Easy Way — Using Annotations
- 3.3.5. SPRING JPA Exception Translation
- 3.3.6. SPRING JPA DAOs
- 3.3.7. Spring JPA Configuration
-
3.3.1. Entities
- 3.4. Persistence and the PIX Domain Model
- 3.5. Testing the Persistence Layer
- 3.6. Summary
- 4. Using Spring MVC to Build Web Pages
- 5. Advanced Spring MVC
-
6. Spring Web Flow
- 6.1. Examining a Sample Work Flow for Loan Applications
- 6.2. Introducing Spring Web Flow
- 6.3. Implementing SWF in the PixWeb Application
- 6.4. Implementing Actions
- 6.5. Implementing Views
- 6.6. Testing Flows
- 6.7. Architectural Overview
- 6.8. Advanced Topics
- 6.9. Summary
-
7. Ajax and Spring: Direct Web Remoting Integration
- 7.1. Web 2.0: The World of Ajax
- 7.2. Ajax Basics
- 7.3. Introducing Direct Web Remoting 2
- 7.4. Setting up the PIX System for the Ajax Album Viewer
- 7.5. Remoting Requires EAGER Fetching of Contained Objects
- 7.6. Summary
-
8. Spring and JMS — Message-Driven POJOs
- 8.1. JMS Concepts
- 8.2. JMS Messaging Domains
- 8.3. The JMS Message
- 8.4. Producing JMS Messages
- 8.5. Consuming JMS Messages
- 8.6. The Spring JMS Framework
- 8.7. Configuring Message-Driven POJOS
- 8.8. Realizing the JMS Use Case
- 8.9. A JMS Provider — Apache ActiveMQ
- 8.10. The JMS Template in the PIX Web Application
- 8.11. Summary
-
9. Spring Web Services and Remoting
- 9.1. Web Service Benefits
- 9.2. Introducing Web Services
- 9.3. Web Services Architecture
- 9.4. Web Services Interactions
- 9.5. Web Services Interoperability
- 9.6. Spring Remoting
- 9.7. SOAP Frameworks
- 9.8. Spring Web Services with XFire
- 9.9. Realizing the PIX AffiliateManagement Use Case
- 9.10. Invoking Web Services
- 9.11. SOAP Handlers
- 9.12. Summary
-
10. Web Service Consumer and Interoperation with .NET
- 10.1. Creating Web Service Consumers — Overview
- 10.2. Describing Web Services with WSDL
- 10.3. Creating a Web Service Consumer with XFire
- 10.4. Understanding the E-Mail-Validation Web Service Consumer in PIX
- 10.5. Generating Web Service Stubs from WSDL Using XFire
- 10.6. Creating a Web Service Consumer with XFire-Generated Stubs
- 10.7. Add a Web Service Consumer to PIX
- 10.8. Web Service Interoperability
- 10.9. Summary
-
11. Rapid Spring Development with Spring IDE
- 11.1. Brief Feature Overview
- 11.2. Installing and Setting Up Your Eclipse Environment
- 11.3. Support for Spring Beans Configuration Files
- 11.4. Visual Support for Spring AOP Configurations
- 11.5. Web Flow Development with Spring IDE
- 11.6. Summary
- 12. Spring AOP and AspectJ
-
13. More AOP: Transactions
- 13.1. Understanding Transactions
- 13.2. Adding Spring Transaction Support to PIX
- 13.3. Summary
- A. Maven 2 Basics
- B. Spring and Java EE
- C. Getting Ready for the Code Examples
Product information
- Title: Beginning Spring Framework 2
- Author(s):
- Release date: December 2007
- Publisher(s): Wrox
- ISBN: 9780470101612
You might also like
video
Spring Framework
Spring Developer Advocate Josh Long will provide a walking tour of all of the Spring projects, …
book
Spring 6 Recipes: A Problem-Solution Approach to Spring Framework
This in-depth Spring-based Java developer code reference has been updated and now solves many of your …
book
Beginning Spring Boot 2: Applications and Microservices with the Spring Framework
Learn Spring Boot and how to build Java-based enterprise, web, and microservice applications with it. In …
book
Spring Boot 2.0 Projects
Develop diverse real-life projects including most aspects of Spring Boot Key Features Run production-grade based applications …