Spring Integration Essentials
eBook - ePub

Spring Integration Essentials

Chandan Pandey

Buch teilen
  1. 198 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

Spring Integration Essentials

Chandan Pandey

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist Spring Integration Essentials als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu Spring Integration Essentials von Chandan Pandey im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Computer Science & Web Programming. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

Jahr
2015
ISBN
9781783989164

Spring Integration Essentials


Table of Contents

Spring Integration Essentials
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
How enterprise integration challenges can be solved
Who are the players?
Why Spring Integration?
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting Started
Setting up STS
Creating your first project
STS visual editor
Spring Integration Scala DSL
Summary
2. Message Ingestion
Working with message channels
Channel types
Spring implementation of channels
Selecting a channel
Publish-subscribe channel
Queue channel
Priority channel
Rendezvous channel
Direct channel
Executor channel
Scoped channel
Datatype channel
Error handling on channels
Persisting and recovering channels
Channel interceptors
Summary
3. Message Processing
Message endpoints
Gateways
Synchronous gateways
Asynchronous gateways
Service activators
Delayers
Transactions
Summary
4. Message Transformers
Introducing message transformers
Working with XML payload
The marshalling transformer
The unmarshalling transformer
XPath transformers
Validating XML messages
Beyond default transformers
Content enrichers
Header enrichers
Payload enrichers
Claim check
Incoming claim check transformer
Outgoing claim check transformer
Summary
5. Message Flow
Routers
Payload-type router
Header value router
Recipient list router
XPath router
Error message exception-type router
Default output channel
Using annotations
Filters
Using a Java class to act as a filter
Configuring a filter as a message endpoint
Splitters
Aggregators
Correlation strategy
Release strategy
Message store
Resequencers
Chaining handlers
Summary
6. Integration with External Systems
Working with files
Prerequisites
Reading files
Behind the scenes
Filters
Preventing duplicates
Concurrent access
Writing files
Naming the file
Target directory
Dealing with existing filenames
File transformers
FTP/FTPS
Prerequisites
Downloading files from the FTP server
Incomplete files
Uploading files to the FTP server
Avoiding partially written files
FTP outbound gateway
FTPS support
Social integration
Prerequisites
Receiving tweets
Sending tweets
Twitter search outbound gateway
Enterprise messaging
Prerequisites
Receiving messages – the inbound adapter
The polling adapter
The event-driven adapter
Sending messages – the outbound adapter
Gateway
The inbound gateway
The outbound gateway
HTTP
Prerequisites
The HTTP inbound gateway
The HTTP outbound gateway
Web services
Prerequisites
The inbound gateway
The outbound gateway
Database SQL
Prerequisites
Datasource
Reading from the database – the inbound adapter
Transaction support
Writing to the database – the outbound adapter
Inbound and outbound gateways
Stream processing
Prerequisites
Reading from a stream
Writing to a stream
Summary
7. Integration with Spring Batch
Spring Batch
Prerequisites
Defining a Spring Batch job
The Spring Batch job language
ItemReader
ItemWriter
Spring Batch and Spring Integration
Launching the job
Tracking the status of a batch job
The other way round
Summary
8. Testing Support
Prerequisite
Testing messages
Testing headers
Handling errors
Testing filters
Splitter test
Summary
9. Monitoring, Management, and Scaling Up
Monitoring and management
JMX support
Prerequisites
The notification listening channel adapter
The notification publishing channel adapter
The attribute polling channel adapter
The tree polling channel adapter
The operation invoking channel adapter
The operation invoking outbound gateway
The MBean exporter
Tracking the message
Wire tap
Control bus
Scaling up
Threading
Scaling the state
Message store
Claim check
Summary
10. An End-to-End Example
Prerequisites
Setting up
Ingesting data
Ingesting data from the RSS feed
Ingesting data from an FTP server
Filtering the data
The aggregator
The correlation bean
The completion bean
The aggregator bean
The splitter
Transformation
The DB transformer
The JMS transformer
The mail transformer
Router
Integration
Database integration
Prerequisites
The gateway
The service activator
Gateways for updating and reading the feeds
Sending a mail
Putting messages on to the JMS queue
Exporting as an MBean
Summary
Index

Spring Integration Essentials

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: February 2015
Production reference: 1160215
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78398-916-4
www.packtpub.com

Credits

Author
Chandan Pandey
Reviewers
Marten Deinum
Biju Kunjummen
Xinyu Liu
Luca Masini
Commissioning Editor
Julian Ursell
Acquisition Editor
Richard Brookes-Bland
Content Development Editors
Sharvari Tawde
Ritika Singh
Technical Editor
Aman Preet Singh
Copy Editors
Roshni Banerjee
Pranjali Chury
Project Coordinator
Judie Jose
Proofreaders
Ameesha Green
Joanna McMahon
Indexer
Monica Ajmera Mehta
Production Coordinator
Nilesh R. Mohite
Cover Work
Nilesh R. Mohite

About the Author

Chandan Pandey is an Oracle Certified Enterprise architect with more than 10 years of experience in designing, coding, and delivering enterprise applications using various tools and technologies. He has always been amused by the power of software that reduces the boredom of repetitive tasks and introduces agility and efficiency. He firmly believes that tools, technology, and methodology are a medium to provide a solution and would like to be positioned as a solutions expert rather than limiting his identity to a framework or tool. This is reflected in the breadth and depth of his work; he is proficient not only in traditional languages and frameworks such as Java/JEE and Spring, but also in Groovy and Grails, Vaadin, and Play Framework, to name a few. His domain experi...

Inhaltsverzeichnis