Mastering Apache Camel
eBook - ePub

Mastering Apache Camel

Jean-Baptiste Onofre

Partager le livre
  1. 238 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

Mastering Apache Camel

Jean-Baptiste Onofre

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Mastering Apache Camel est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Mastering Apache Camel par Jean-Baptiste Onofre en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Informatique et Applications de l'entreprise. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2015
ISBN
9781782173151

Mastering Apache Camel


Table of Contents

Mastering Apache Camel
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Instant updates on new Packt books
Preface
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. Key Features
What is Apache Camel?
Components and bean support
Predicates and expressions
Data format and type conversion
Easy configuration and URI
Lightweight and different deployment topologies
Quick prototyping and testing support
Management and monitoring using JMX
Active community
Summary
2. Core Concepts
Messages
Exchange
Camel context
Processor
Routes
Channels
Domain Specific Languages (DSL)
Component, endpoint, producer, and consumer
Data format
Type converter
Summary
3. Routing and Processors
What is a processor?
An example of Camel routes containing processors
Prefixer processor
Creating a route using Java DSL
Route using Camel Blueprint DSL
Summary
4. Beans
Registry
SimpleRegistry
JndiRegistry
ApplicationContextRegistry
OsgiServiceRegistry
Creating CompositeRegistry
Service activator
Bean and method bindings
Annotations
Annotations for expression languages
Example – creating an OSGi bundle with a bean
Creating the MyBean class
Writing a route definition using the Camel Blueprint DSL
Building and deploying
Summary
5. Enterprise Integration Patterns
EIP processors
Messaging systems EIPs
Message Channel
Message
Pipeline
The implicit pipeline
The explicit pipeline
Message router
Message Translator
The transform notation
Using processor or bean
Marshalling/umarshalling
Message Endpoint
Messaging channels EIPs
Point To Point Channel
Publish Subscribe Channel
Dead Letter Channel
Guaranteed Delivery
Message Bus
Message Construction EIPs
The Event Message EIP
The Request Reply EIP
The Correlation Identifier EIP
The Return Address EIP
Message Routing
The Content Based Router EIP
The Message Filter EIP
The Dynamic Router EIP
Multicast and Recipient List EIPs
The Multicast EIP
The Recipient List EIP
The Splitter and Aggregator EIPs
The Splitter EIP
Aggregator
The Resequencer EIP
The Composed Message Processor EIP
The Scatter-Gather EIP
The Routing Slip EIP
The Throttler and Sampling EIPs
The Throttler EIP
The Sampling EIP
The Delayer EIP
The Load Balancer EIP
The Loop EIP
Message Transformation EIPs
The Content Enricher EIP
The Content Filter EIP
The Claim Check EIP
The Normalizer EIP
The Sort EIP
The Validate EIP
The Messaging Endpoints EIPs
The Messaging Mapper EIP
The Event Driven Consumer EIP
The Polling Consumer EIP
The Competing Consumer EIP
The Message Dispatcher EIP
The Selective Consumer EIP
The Durable Subscriber EIP
The Idempotent Consumer EIP
The Transactional Client EIP
The Message Gateway and Service Activator EIPs
System Management EIPs
The ControlBus EIP
The Detour EIP
The Wire Tap EIP
The Message History EIP
The Log EIP
Summary
6. Components and Endpoints
Components
Bootstrapping a component
Endpoint
A custom component example
Summary
7. Error Handling
Types of errors
Recoverable errors
Irrecoverable errors
Camel error handlers
Non-transacted error handlers
DefaultErrorHandler
DeadLetterChannel
LoggingErrorHandler
NoErrorHandler
TransactedErrorHandler
Error handlers scopes
Error handler features
Redelivery
Exception policy
Handling and ignoring exceptions
A failover solution
onWhen
onRedeliver
retryWhile
Try, Catch, and Finally
Summary
8. Testing
Unit test approach with the Camel test kit
ProducerTemplate
JUnit extensions
CamelTestSupport
CamelSpringTestSupport
CamelBlueprintTestSupport
The mock component
Using MockComponent
A complete example
Additional annotations
Mocking OSGi services
Summary
Index

Mastering Apache Camel

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: June 2015
Production reference: 1250615
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78217-315-1
www.packtpub.com

Credits

Author
Jean-Baptiste Onofré
Reviewers
Volker Kueffel
Carsten Ringe
Phil Wilkins
Commissioning Editor
Amarabha Banerjee
Acquisition Editor
Meeta Rajani
Content Development Editor
Anand Singh
Technical Editors
Namrata Patil
Deepti Tuscano
Copy Editors
Merilyn Pereira
Laxmi Subramanian
Project Coordinator
Vijay Kushlani
Proofreader
Safis Editing
Indexer
Rekha Nair
Production Coordinator
Melwyn D'sa
Cover Work
Melwyn D'sa

About the Author

Jean-Baptiste Onofré is a member of the Apache Software Foundation, and he has been involved in Apache projects for about 10 years. He's the PMC chair of Apache Karaf and its subprojects, including Cellar, Cave, and EIK.
He's also a PMC member of Apache ACE, Apache ServiceMix, and Apache Syncope, and he is a committer for Apache ActiveMQ, Apache Archiva, Apache Aries, Apache Camel, and Apache jClouds.
He's currently working at Talend (http://www.talend.com) as a software architect and is a member of the Talend Apache team.
He has provided articles on Java technologies for GNU/Linux magazine France and has worked as an author and a reviewer on different books, such as Learning Karaf Cellar and Apache Karaf Cookbook, both by Packt Publishing.
He has also given talks on Apache projects, such as Karaf and Camel, at different conferences, especially ApacheCon NA and Europe, CamelOne, and so on.

Table des matiĂšres