Pro Spring Integration

By Dr Mark Lui , Mario Gray , Andy Chan , Josh Long

Pro Spring Integration Cover Image

Pro Spring Integration tackles the vast world of enterprise application integration (EAI), and focuses specifically on the application of the Spring Integration framework towards solving integration problems.

Full Description

  • ISBN13: 978-1-4302-3345-9
  • 664 Pages
  • User Level: Intermediate to Advanced
  • Publication Date: March 23, 2011
  • Available eBook Formats: EPUB, MOBI, PDF
  • Print Book Price: $59.99
  • eBook Price: $41.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

Pro Spring Integration is an authoritative book from the experts that guides you through the vast world of enterprise application integration (EAI) and application of the Spring Integration framework towards solving integration problems. The book is:



  • An introduction to the concepts of enterprise application integration
  • A reference on building event-driven applications using Spring Integration
  • A guide to solving common integration problems using Spring Integration

What makes this book unique is its coverage of contemporary technologies and real-world information, with a focus on common problems that users are likely to confront. This book zeroes in on extending the Spring Integration framework to meet your custom integration demands.



As Spring Integration is an extension of the Spring programming model, it builds on the Spring Framework's existing support for enterprise integration. This book will take you through all aspects of this relationship and show you how to get the most out of your Spring applications, where integration is a consideration. It discusses simple messaging within Spring-based applications and integration with external systems via simple adapters. Those adapters provide a higher-level of abstraction over Spring's support for remoting, messaging, and scheduling, all of which receives coverage in this book.

What you’ll learn

  • Introduces the wide world of Spring Integration with an overview of application integration, the patterns involved and then quickly moving into applications
  • How to identify integration problems that are best solved using Spring Integration and enterprise application integration (EAI)
  • Discover and apply EAI patterns and related architectural concepts like staged event driven architectures (SEDA)
  • Explore the concepts behind message-oriented middleware (MOM)
  • How to interface with external systems using Spring Integration
  • Extend the Spring Integration stack with custom adapters, endpoints, and more
  • What are the next steps to production with expert insight into error handling, monitoring, management, and scaling the enterprise Java application

Who this book is for

This book is for any developer looking for a more natural way to build event-driven applications using familiar Spring idioms and techniques. The book is also geared towards architects seeking to better their applications and increase productivity in their developers.

Table of Contents

Table of Contents

  1. Enterprise Application Integration Fundamentals
  2. Exploring the Alternatives
  3. Introduction to Core Spring Framework
  4. Introduction to Enterprise Spring
  5. Introduction to Spring Integration
  6. Channels
  7. Transformation and Enrichment
  8. Message Flow: Routing and Filtering
  9. Endpoints and Adapters
  10. Monitoring and Management
  11. Talking to The Metal
  12. Enterprise Messaging with JMS and AMQ
  13. Social Messaging with Email, XMPP, and Twitter
  14. Web Services
  15. Extending Spring Integration
  16. Scaling Your Spring Integration Application
  17. Spring Integration and Spring Batch
  18. Spring Integration and Your Web Application
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

Please Login to submit errata.

On page 158:

The example given for introducing JMS into the application doesn't work. While it sends the message it doesn't call the message handler. You can see this by looking at the output; it doesn't contain the "MESSAGE:" part. I believe the jms-spring-context.xml file should look some thing like this:

----------------------------------------------------------
<int:channel id="input"/>
<int:channel id="jms" />

<jms:outbound-channel-adapter channel="input" destination-name="requestQueue"/>

<jms:message-driven-channel-adapter channel="jms" destination-name="requestQueue"/>

<int:channel id="output">
<int:queue capacity="10"/>
</int:channel>

<int:service-activator input-channel="jms"
output-channel="output"
ref="messageHandler"/>
----------------------------------------------------------

Since it's the first introduction to using Spring Integration, not having it work, nor explaining how to properly plug JMS into the processing pipe is not ideal.

On page 481:

Listing 14-5
TickerIssuerConfiguration extends CommonConfiguration

CommonConfiguration is not listed elsewhere.

On page 603:
I believe in Listing 18-22, the version of org.springframework:spring-webmvc in the pom.xml should be 3.0.5.RELEASE , not 2.0.1.RELEASE

i.e. incorrect:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>2.0.1.RELEASE</version>
</dependency>

CORRECT:

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>3.0.5.RELEASE</version>
</dependency>