Spring by Example

David Winterfeldt

Version 1.5


Table of Contents

Preface
1. Spring: Evolution Over Intelligent Design
2. A Little History
3. Goals of This Book
4. A Note about Format
I. Spring Introduction
Spring In Context: Core Concepts
1. Spring and Inversion of Control
Dependency Inversion: Precursor to Dependency Injection
2. Dependency Injection To The Rescue
3. Bean management through IoC
4. Our Example In Spring IoC
A Practical Introduction to Inversion of Control
1. Basic Bean Creation
2. Basic Constructor Injection
3. Basic Setter Injection
4. Reference Injection
5. Creating a Spring Application
6. Unit Test Beans from Application Context
7. Getting Started
Setup
8. Reference
Related Links
Project Information
II. Core
AspectJ Load-time Weaving in Spring
1. JVM Argument
2. Spring Configuration
3. AspectJ Configuration
4. Code Example
5. Reference
Related Links
Project Setup
Project Information
III. Persistence
Simple Spring JDBC Template
1. Spring Configuration
2. Code Example
3. Reference
Related Links
Simple Hibernate XML Configuration
1. Spring Configuration
2. Hibernate Configuration
3. SQL Script
4. Code Example
5. Reference
Related Links
One to Many Hibernate XML Configuration
1. Spring Configuration
2. Hibernate Configuration
3. SQL Script
4. Code Example
5. Reference
Related Links
Project Setup
Project Information
One to Many Hibernate Annotation Configuration
1. Spring Configuration
2. Hibernate Configuration
3. SQL Script
4. Code Example
5. Reference
Related Links
Project Setup
Project Information
One to Many JPA Hibernate Configuration
1. Spring Configuration
2. JPA Entity Configuration
3. JPA Configuration
4. Code Example
5. Reference
Related Links
Project Setup
Project Information
JPA Joined Inheritance
1. Spring Configuration
2. JPA Entity Configuration
3. JPA Configuration
4. Code Example
5. SQL Script
6. Reference
Related Links
Project Setup
Project Information
Spring Data JPA
1. Spring Configuration
2. JPA Configuration
3. Repository
4. Code Example
5. Reference
Related Links
Project Setup
Project Information
Spring Data JPA Auditing
1. Spring Configuration
2. JPA Configuration
3. Code Example
4. SQL Script
5. Reference
Related Links
Project Setup
Project Information
Hibernate Transaction Annotation Configuration
1. Spring Configuration
2. Code Example
3. Reference
Related Links
Project Setup
Project Information
Simple Spring Transactional JUnit 4 Test
1. Spring Configuration
2. Code Example
3. Reference
Related Links
Project Setup
Project Information
IV. Web
Simple Tiles 2 Spring MVC Webapp
1. Spring Configuration
2. Tiles XML Configuration
3. JSP Example
4. Reference
Related Links
Project Setup
Project Information
Basic Webapp Internationalization
1. Web Configuration
2. Spring Configuration
3. JSP Example
4. Message Resource Property Files
5. Reference
Related Links
Project Setup
Project Information
Simple Spring MVC Form Annotation Configuration Webapp
1. Web Configuration
2. Spring Configuration
3. JSP Example
4. Code Example
5. Reference
Related Links
Project Setup
Project Information
Simple Spring Security Webapp
1. Web Configuration
2. Spring Configuration
3. JSP Example
4. Code Example
5. SQL Script
6. Reference
Related Links
Project Setup
Project Information
Simple Spring Web Flow Webapp
1. Web Configuration
2. Spring Configuration
3. JSP Example
4. Code Example
5. Reference
Related Links
Project Setup
Project Information
Spring Web Flow Subflow Webapp
1. Spring Configuration
2. JSP Example
3. Code Example
4. Reference
Related Links
Project Setup
Project Information
Simple Grails Webapp
1. Create Application
2. Modify Code
3. Run Application
4. Reference
Related Links
Project Setup
Project Information
Simple Flex Webapp
1. Web Configuration
2. Spring Configuration
3. Adobe BlazeDS Configuration
4. Code Example
5. Flex Code Example
6. Reference
Related Links
Project Setup
Project Information
V. Enterprise
Simple Spring JMS
1. Producer Configuration
Spring Configuration
Code Example
2. Client Configuration
Spring Configuration
Code Example
3. Reference
Related Links
Project Setup
Project Information
Simple Spring Web Services
1. Server Configuration
Web Configuration
Spring Configuration
XML Schema Descriptor
Code Example
2. Client Configuration
Spring Configuration
Code Example
3. Unit Test
Spring Configuration
4. Reference
Related Links
Project Setup
Project Information
Embedded Spring Web Services
1. Spring Configuration
2. Code Example
3. Reference
Related Links
Project Setup
Project Information
Simple Spring Integration
1. Spring Configuration
2. Code Example
3. Reference
Related Links
Project Setup
Project Information
Spring JMX
1. Spring Configuration
2. Code Example
3. Reference
Related Links
Project Setup
Project Information
Spring Modules JCR Node Creation & Retrieval
1. Spring Configuration
2. Code Example
3. Reference
Related Links
Project Setup
Project Information
Velocity E-mail Template
1. Spring Configuration
2. Code Example
3. Reference
Related Links
Project Setup
Test Setup
Project Information
Solr Client
1. Connecting to Solr using SolrOxmClient
Spring Configuration
Code Example
2. Connecting to Solr using HttpClientTemplate & HttpClientOxmTemplate
Spring Configuration
Code Example
3. Reference
Related Links
Project Setup
Project Information
VI. Contact Application
Contact Application DAO
1. Spring Configuration
2. JPA Configuration
3. JPA Property Configuration
4. Reference
Related Links
Project Setup
Project Information
Contact Application Web Service Beans
1. Spring Configuration
2. JAXB Configuration
3. Reference
Related Links
Project Setup
Project Information
Contact Application Services
1. Spring Configuration
2. Dozer Configuration
3. Converter Code
4. Persistence Service Code
Persistence Service Interface Code
Persistence Service Abstract Code
5. Contact Service Code Example
6. Reference
Related Links
Project Setup
Project Information
Contact Application REST Services
1. Spring Configuration
Spring MVC Configuration
Spring JSON Configuration
2. Persistence Marshalling Code
3. Contact REST Code Example
4. REST Client
Spring Configuration
Client Code
5. Reference
Related Links
Project Setup
Project Information
Contact Application Webapp
1. Web Configuration
2. Spring Configuration
3. Code Example
4. Reference
Related Links
Project Setup
Project Information
Contact Application Test
1. Abstract Test Code
Abstract Code
2. DAO Test
Spring Configuration
Abstract Code
Code Example
3. Services Test
Spring Configuration
Abstract Code
Code Example
4. REST Services Test
Spring Configuration
Abstract Code
Code Example
5. Reference
Related Links
Project Setup
Project Information
VII. Modules
Module Summary
1. Downloads
Custom ServletContext Scope Module
Custom Thread Scope Module
Dynamic Tiles Module
Spring by Example JCR Module
Spring by Example Utils Module
Spring by Example Web Module
Spring by Example Custom ServletContext Scope Module
1. Spring Configuration
2. Download
3. Reference
Related Links
Project Setup
Project Information
Spring by Example Custom Thread Scope Module
1. Spring Configuration
2. Code Example
3. Download
4. Reference
Related Links
Project Setup
Project Information
Dynamic Tiles 2 Spring MVC Module
1. Spring Configuration
2. Tiles XML Configuration
3. Tiles JSP Example
4. DynamicTilesView
Processing Order
5. Download
6. Reference
Related Links
Project Setup
Project Information
Spring by Example JCR Module
1. Spring Configuration
2. Code Example
3. Download
4. Reference
Related Links
Project Setup
Project Information
Spring by Example Utils Module
1. HttpClientTemplate
Spring Configuration
Code Example
2. HttpClientOxmTemplate
Spring Configuration
Code Example
3. SolrOxmClient
Spring Configuration
Code Example
4. Logger BeanPostProcessor
Spring Configuration
Code Example
5. Download
6. Reference
Related Links
Project Setup
Project Information
Spring by Example Web Module
1. Spring GWT Controller
Spring Configuration
Code Example
2. Spring Bayeux Integration for Comet on Jetty
Web Configuration
Spring Configuration
Code Example
3. Image Interceptor
Spring Configuration
JSP Example
4. Download
5. Reference
Related Links
Project Setup
Project Information
Spring Modules Validation
1. Valang
Rule Syntax
Expression Syntax
Functions
Custom Functions
Bytecode Generation
Date Examples
2. Download
3. Reference
Related Links
Project Setup
Project Information
A. Setup
A.1. Project Setup
Basic Setup
Project Checkout
SpringSource Tool Suite Setup
General Eclipse IDE Setup
B. Author Bios
B.1. David Winterfeldt
Introduction
Technical Expertise
Experience
Sites & Blogs
Contact Info