Spring by Example

David Winterfeldt

Version 1.03


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 JpaTemplate Hibernate Configuration
1. Spring Configuration
2. JPA Entity Configuration
3. JPA Configuration
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
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 GWT Spring Webapp
1. Web Configuration
2. GWT
GWT Configuration
Spring Configuration
JSP Example
Code Example
3. Spring JS Configuration
Spring Configuration
JSP Example
4. Reference
Related Links
Project Setup
Project Information
Spring Bayeux GWT Chat Webapp
1. Server Configuration
Web Configuration
Spring Configuration
Code Example
2. Client Configuration
Join Code Example
Send Code Example
Leave Code Example
3. Reference
Related Links
Project Setup
Project Information
Spring Bayeux GWT Trade Monitor Webapp
1. Server Configuration
Web Configuration
Spring Configuration
Code Example
2. Client Configuration
Subscribe Code Example
Display Trade Summary Code Example
3. 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
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. Spring dm Server
Simple Message Service
1. Message Service Bundle 1.0
Manifest Configuration
Spring Configuration
Code Example
2. Message Service Bundle 1.1
Manifest Configuration
Spring Configuration
Code Example
3. Message Service Web Module
Manifest Configuration
Spring Configuration
JSP Example
Code Example
4. Reference
Related Links
Project Setup
Project Information
Simple Spring MVC
1. Simple Spring MVC PAR
Manifest Configuration
2. Simple Spring MVC DataSource Bundle
Manifest Configuration
Spring Configuration
3. Simple Spring MVC Person DAO Bundle
Manifest Configuration
JPA Configuration
Spring Configuration
Code Example
4. Simple Spring MVC Web Module
Manifest Configuration
Spring Configuration
JSP Example
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 JDBC 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 JDBC 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
SpringSource Tool Suite Setup
Eclipse IDE 3.4 Setup
General Eclipse IDE Setup
B. Author Bios
B.1. David Winterfeldt
Introduction
Technical Expertise
Experience
Sites & Blogs
Contact Info