Mastering Apache Camel
eBook - ePub

Mastering Apache Camel

Jean-Baptiste Onofre

Share book
  1. 238 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Mastering Apache Camel

Jean-Baptiste Onofre

Book details
Book preview
Table of contents
Citations

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Mastering Apache Camel an online PDF/ePUB?
Yes, you can access Mastering Apache Camel by Jean-Baptiste Onofre in PDF and/or ePUB format, as well as other popular books in Informatique & Applications de l'entreprise. We have over one million books available in our catalogue for you to explore.

Information

Year
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 of contents