Apache Camel Developer's Cookbook
eBook - ePub

Apache Camel Developer's Cookbook

Scott Cranton, Jakub Korab

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

Apache Camel Developer's Cookbook

Scott Cranton, Jakub Korab

Book details
Book preview
Table of contents
Citations

About This Book

In Detail

Apache Camel is a de-facto standard for developing integrations in Java, and is based on well-understood Enterprise Integration Patterns. It is used within many commercial and open source integration products. Camel makes common integration tasks easy while still providing the developer with the means to customize the framework when the situation demands it. Tasks such as protocol mediation, message routing and transformation, and auditing are common usages of Camel.

Apache Camel Developer's Cookbook provides hundreds of best practice tips for using Apache Camel in a format that helps you build your Camel projects. Each tip or recipe provides you with the most important steps to perform along with a summary of how it works, with references to further reading if you need more information. This book is intended to be a reliable information source that is quicker to use than an Internet search.

Apache Camel Developer's Cookbook is a quick lookup guide that can also be read from cover to cover if you want to get a sense of the full power of Apache Camel. This book provides coverage of the full lifecycle of creating Apache Camel-based integration projects, including the structure of your Camel code and using the most common Enterprise Integration patterns. Patterns like Split/Join and Aggregation are covered in depth in this book.

Throughout this book, you will be learning steps to transform your data. You will also learn how to perform unit and integration testing of your code using Camel's extensive testing framework, and also strategies for debugging and monitoring your code. Advanced topics like Error Handling, Parallel Processing, Transactions, and Security will also be covered in this book.

This book provides you with practical tips on using Apache Camel based on years of hands-on experience from hundreds of integration projects.

Approach

This book is written in a Cookbook style with short recipes showing developers how to effectively implement EIP without breaking everything in the process. It is concise and to the point, and it helps developers get their data flowing between different components without the need to read through page upon page of theory, while also enabling the reader to learn how to create exciting new projects.

Who this book is for

Apache Camel Developer's Cookbook is intended for developers who have some familiarity with Apache Camel and who want a quick lookup reference to practical, proven tips on how to perform common tasks. Every recipe also includes a summary and reference pointers for more details that make it easy for you to get a deeper understanding of the Apache Camel capabilities that you will use day to day.

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 Apache Camel Developer's Cookbook an online PDF/ePUB?
Yes, you can access Apache Camel Developer's Cookbook by Scott Cranton, Jakub Korab in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming Languages. We have over one million books available in our catalogue for you to explore.

Information

Year
2013
ISBN
9781782170303
Edition
1

Apache Camel Developer's Cookbook


Table of Contents

Apache Camel Developer's Cookbook
Credits
About the Authors
Acknowledgments
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 is Camel?
Camel Concepts
The Camel DSL
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. Structuring Routes
Introduction
Using Camel in a Java application
Getting ready
How to do it...
How it works...
There's more...
See also
Embedding Camel in a Spring application
Getting ready
How to do it...
How it works...
There's more...
See also
Using Camel components
Getting ready
How to do it...
How it works...
There's more...
See also
Reusing routing logic by connecting routes
Getting ready
How to do it...
How it works...
There's more...
See also
Asynchronously connecting routes
Getting ready
How to do it...
How it works...
There's more...
See also
Spanning Camel contexts within a single Java process
Getting ready
How to do it...
How it works...
See also
Using external properties in Camel routes
Getting ready
How to do it...
How it works...
There's more...
See also
Reusing endpoints
Getting ready
How to do it...
Reusing routing logic through template routes
Getting ready
How to do it...
How it works...
See also
Controlling route startup and shutdown
Getting ready
How to do it...
How it works...
There's more...
See also
2. Message Routing
Introduction
Content Based Routing
Getting ready
How to do it...
How it works...
There's more...
See also
Filtering out unwanted messages
Getting ready
How to do it...
How it works...
There's more...
See also
Wire Tap – sending a copy of the message elsewhere
Getting ready
How to do it...
How it works...
Deep copying of the exchange
There's more...
See also
Multicast – routing the same message to many endpoints
Getting ready
How to do it...
How it works...
There's more...
See also
Recipient List – routing a message to a list of endpoints
Getting ready
How to do it...
How it works...
There's more...
See also
Throttler – restricting the number of messages flowing to an endpoint
Getting ready
How to do it...
How it works...
There's more...
See also
Request-response route sending a one-way message
Getting ready
How to do it...
How it works...
There's more...
See also
One-way route waiting on a request-response endpoint
Getting ready
How to do it...
How it works...
There's more...
See also
Dynamic Routing – making routing decisions at runtime
Getting ready
How to do it...
How it works...
There's more...
See also
Load balancing across a number of endpoints
Getting ready
How to do it...
How it works...
There's more...
See also
Routing Slip – routing a message to a fixed list of endpoints
Getting ready
How to do it...
How it works...
There's more...
See also
3. Routing to Your Code
Introduction
Routing messages directly to a Java method
Getting ready
How to do it...
How it works...
There's more...
See also
Sending messages directly to a Camel endpoint
Getting ready
How to do it...
How it works...
There's more...
See also
Using a Java method as a Predicate
Getting ready
How to do it...
How it works...
There's more...
See also
Writing a custom Camel Processor
Getting ready
How to do it...
How it works...
There's more...
See also
Mapping the message to method parameters
Getting ready
How to do it...
How it works...
There's more...
See also
Writing a custom data marshaller
Getting ready
How to do it...
How it works...
There's more...
See also
Writing a custom data type converter
Getting ready
How to do it...
How it works...
There's more...
See also
4. Transformation
Introduction
Transforming using a Simple Expression
Getting ready
How to do it...
How it works...
There's more...
See also
Transforming inline with XQuery
Getting ready
How to do it...
How it works...
There's more...
See also
Transforming with XSLT
Getting ready
How to do it...
How it works...
There's more...
See also
Transforming from Java to XML with JAXB
Getting ready
How to do it...
How it works...
There's more...
See also
Transforming from Java to JSON
Getting ready
How to do it...
How it works...
There's more...
See also
Transforming from XML to JSON
Getting ready
How to do it...
How it works...
There's more...
See also
Parsing comma-separated values (CSV)
Getting ready
How to do it...
How it works...
There's more...
See also
Enriching your content with some help from other endpoints
Getting ready
How to do it...
How it works...
There's more...
See also
Normalizing messages into a common XML format
Getting ready
How to do it...
How it works...
There's more...
See also
5. Splitting and Aggregating
Introduction
Splitting a message into fragments
Getting ready
How to do it...
How it works...
There's more...
See also
Splitting XML messages
Getting ready
How to do it...
How it works...
There's more...
See also
Processing split messages in parallel
Getting ready
How to do it...
How it works...
There's more...
See also
Aggregating related messages
Getting ready
How to do it...
How it works...
There's more...
See also
Aggregating with timeouts
Getting ready
How to do it...
How it works...
See also
Aggregating with intervals
Getting ready
How to do it...
How it works...
See also
Processing aggre...

Table of contents