Mastering Apache Camel
eBook - ePub

Mastering Apache Camel

Jean-Baptiste Onofre

Condividi libro
  1. 238 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

Mastering Apache Camel

Jean-Baptiste Onofre

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Mastering Apache Camel è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Mastering Apache Camel di Jean-Baptiste Onofre in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Informatique e Applications de l'entreprise. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
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.

Indice dei contenuti