Mastering Apache Camel
eBook - ePub

Mastering Apache Camel

Jean-Baptiste Onofre

Compartir libro
  1. 238 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Mastering Apache Camel

Jean-Baptiste Onofre

Detalles del libro
Vista previa del libro
Índice
Citas

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Mastering Apache Camel un PDF/ePUB en línea?
Sí, puedes acceder a Mastering Apache Camel de Jean-Baptiste Onofre en formato PDF o ePUB, así como a otros libros populares de Informatique y Applications de l'entreprise. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2015
ISBN
9781782173151
Edición
1
Categoría
Informatique

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.

Índice