Book description
Build Spring enterprise and Java EE applications from the ground up using Recipes from this book as templates to get you started, fast. Employ Spring Integration, Spring Batch and more for your enterprise applications.
Table of contents
- Copyright
- About the Authors
- About the Technical Reviewer
- Acknowledgments
- Introduction
-
1. Introduction to Spring
- 1.1. Instantiating the Spring IoC Container
- 1.2. Configuring Beans in the Spring IoC Container
- 1.3. Auto-Wiring Beans with XML Configuration
- 1.4. Auto-Wiring Beans with @Autowired and @Resource
- 1.5. Scanning Components from the Classpath
- 1.6. Setting Bean Scopes
- 1.7. Customizing Bean Initialization and Destruction
- 1.8. Resolving Text Messages
- 1.9. Loading External Resources
- 1.10. Enabling AspectJ Annotation Support in Spring
- 1.11. Declaring Aspects with AspectJ Annotations
- 1.12. Reusing Pointcut Definitions
- 1.13. Writing AspectJ Pointcut Expressions
- 1.14. Introducing Behaviors to Your Beans
- 1.15. Introducing States to Your Beans
- 1.16. Summary
-
2. What's New in Spring 3.0?
- 2.0. Upgrades to the SpringSource Portfolio
- 2.1. Getting Started with the Latest and Greatest Spring Framework
- 2.2. Using Java 5 Syntax in Spring
- 2.3. Achieving Concurrency with TaskExecutors
- 2.4. Using the Spring Expression Language
- 2.5. My Code Doesn't Compile!
- 2.6. Reducing XML Configuration with Java Config
- 2.7. Summary
-
3. Data Access
- 3.0. Problems with Direct JDBC
- 3.1. Using a JDBC Template to Update a Database
- 3.2. Using a JDBC Template to Query a Database
- 3.3. Simplifying JDBC Template Creation
- 3.4. Using the Simple JDBC Template with Java 1.5
- 3.5. Using Named Parameters in a JDBC Template
- 3.6. Handling Exceptions in the Spring JDBC Framework
- 3.7. Problems with Using ORM Frameworks Directly
- 3.8. Configuring ORM Resource Factories in Spring
- 3.9. Persisting Objects with Spring's ORM Templates
- 3.10. Persisting Objects with Hibernate's Contextual Sessions
- 3.11. Persisting Objects with JPA's Context Injection
- 3.12. Summary
-
4. Transaction Management in Spring
- 4.1.
- 4.2. Problems with Transaction Management
- 4.3. Choosing a Transaction Manager Implementation
- 4.4. Managing Transactions Programmatically with the Transaction Manager API
- 4.5. Managing Transactions Programmatically with a Transaction Template
- 4.6. Managing Transactions Declaratively with Transaction Advices
- 4.7. Managing Transactions Declaratively with the @Transactional Annotation
- 4.8. Setting the Propagation Transaction Attribute
- 4.9. Setting the Isolation Transaction Attribute
- 4.10. Setting the Rollback Transaction Attribute
- 4.11. Setting the Timeout and Read-Only Transaction Attributes
- 4.12. Managing Transactions with Load-Time Weaving
- 4.13. Summary
-
5. EJB, Spring Remoting, and Web Services
- 5.1. Exposing and Invoking Services Through RMI
- 5.2. Creating EJB 2.x Components with Spring
- 5.3. Accessing EJB 2.x Components in Spring
- 5.4. Creating EJB 3.0 Components in Spring
- 5.5. Accessing EJB 3.0 Components in Spring
- 5.6. Exposing and Invoking Services Through HTTP
- 5.7. Choosing a Web Service Development Approach
- 5.8. Exposing and Invoking Web Services Using XFire
- 5.9. Defining the Contract of Web Services
- 5.10. Implementing Web Services Using Spring-WS
- 5.11. Invoking Web Services Using Spring-WS
- 5.12. Developing Web Services with XML Marshalling
- 5.13. Creating Service Endpoints with Annotations
- 5.14. Summary
- 6. Spring in the Enterprise
- 7. Messaging
-
8. Spring Integration
- 8.1. Getting Started with Spring Integration
- 8.2. Integrating One System with Another Using EAI
- 8.3. Integrating Two Systems Using JMS
- 8.4. Interrogate Spring Integration Messages for Context Information
- 8.5. Integrating Two Systems Using a File System
- 8.6. Transforming a Message from One Type to Another
- 8.7. Error Handling Using Spring Integration
- 8.8. Forking Integration Control: Splitters and Aggregators
- 8.9. Conditional Routing with Routers
- 8.10. Adapting External Systems to the Bus
- 8.11. Staging Events Using Spring Batch
- 8.12. Gateways
- 8.13. Summary
-
9. Spring Batch
- 9.1.
- 9.2. Getting Started with the Spring Batch Distribution
- 9.3. Setting Up Spring Batch's Infrastructure
- 9.4. Running Jobs
- 9.5. Reading and Writing (but No Arithmetic)
- 9.6. Writing a Custom ItemWriter and ItemReader
- 9.7. Processing Input Before Writing
- 9.8. Better Living through Transactions
- 9.9. Retry
- 9.10. Controlling Step Execution
- 9.11. Parameterizing a Job
- 9.12. Summary
- 10. Distributed Spring
- 11. jBPM and Spring
-
12. OSGi and Spring
- 12.1. Getting Started With OSGi
- 12.2. How do I get Started Using Spring Dynamic Modules?
- 12.3. How do I Export a Service Using Spring Dynamic Modules?
- 12.4. Finding a Specific Service in the OSGi Registry
- 12.5. Publishing a Service Under Multiple Interfaces
- 12.6. Customizing Spring Dynamic Modules
- 12.7. Using SpringSource dm Server
- 12.8. SpringSource's Tooling
- 12.9. Summary
Product information
- Title: Spring Enterprise Recipes: A Problem-Solution Approach
- Author(s):
- Release date: November 2009
- Publisher(s): Apress
- ISBN: 9781430224976
You might also like
book
Python Crash Course, 2nd Edition
This is the second edition of the best selling Python book in the world. Python Crash …
book
Enterprise Integration Patterns: Designing, Building, and Deploying Messaging Solutions
Enterprise Integration Patterns The authors also include examples covering a variety of different integration technologies, such …
book
Java 8 in Action: Lambdas, streams, and functional-style programming
Java 8 in Action Summary About the Book Every new version of Java is important, but …
book
OCA: Oracle Certified Associate Java SE 8 Programmer I Study Guide: Exam 1Z0-808
Full coverage of functional programming and all OCA Java Programmer exam ojectives OCA, Oracle Certified Associate …