Instant Apache Camel Message Routing - Bilgin Ibryam - E-Book

Instant Apache Camel Message Routing E-Book

Bilgin Ibryam

0,0
20,39 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.

Mehr erfahren.
Beschreibung

With new APIs and technologies emerging every day, the need for integrating applications is greater than ever before. With the right tools, integrating applications is not hard. Apache Camel is the leading open source integration and message orchestration framework. Apache Camel, which has a variety of connectors and features numerous well-known integration patterns, has an enormous advantage over home grown integration solutions.

Instant Apache Camel Message Routing helps you to get started using the Camel routing engine and Enterprise Integration Patterns. This book will show you how to create integration applications using Apache Camel. You will learn how Camel works and how to leverage the Enterprise Integration Patterns for message routing.

Instant Apache Camel Message Routing is a practical and step-by-step guide to Apache Camel and integration patterns. This book will show you how Apache Camel works and how it integrates disparate systems using Enterprise Integration Patterns. The book starts with a high level overview of the Camel architecture before diving into message routing principles. Then, it introduces a number of patterns, complete with diagrams, common use cases, and examples about how to use them with Camel. The book also shows you how to test and monitor Camel applications and cope with failure scenarios.

Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:

EPUB
MOBI

Seitenzahl: 72

Veröffentlichungsjahr: 2013

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



Table of Contents

Instant Apache Camel Message Routing
Credits
About the Author
About the Reviewer
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
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. Instant Apache Camel Message Routing
Creating a Camel project (Simple)
Getting ready
How to do it...
How it works...
There's more...
Using Spring XML DSL
Routing messages to different destinations (Simple)
Getting ready
How to do it...
How it works...
There's more...
Expression languages
Dynamic routing
Using components (Simple)
Getting ready
How to do it...
How it works...
There's more...
Accessing the Registry
Connecting routes (Simple)
Getting ready
How to do it...
How it works...
There's more...
Asynchronous connection
Connecting routes in the same JVM
Calling routes from Java methods
Removing unwanted messages (Simple)
Getting ready
How to do it...
How it works...
There's more...
Idempotent consumer
Bean binding
Transforming messages (Intermediate)
Getting ready
How to do it...
How it works...
There's more...
Type conversion
Transforming with expression language
Executing a Java method
Using template component
Normalizing messages to a common format
Splitting a message into many (Intermediate)
Getting ready
How to do it...
How it works...
There's more...
Aggregating results
Threading model
Aggregating multiple messages into one (Intermediate)
Getting ready
How to do it...
How it works...
There's more...
Composed message processor
Scatter-gather
Reorganizing messages (Intermediate)
Getting ready
How to do it...
How it works...
There's more...
Limiting flow rate with Throttler
Delaying messages
Multicasting messages (Intermediate)
Getting ready
How to do it...
How it works...
There's more...
Dynamic multicasting
Wire Tap
Error handling and monitoring (Advanced)
Getting ready
How to do it...
How it works...
There's more...
Exception Clause
Java style error handling
Monitoring and logging
Testing the messaging applications (Advanced)
Getting ready
How to do it...
How it works...
There's more...
Testing applications written in Spring XML DSL
Other tools for testing

Instant Apache Camel Message Routing

Instant Apache Camel Message Routing

Copyright © 2013 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: August 2013

Production Reference: 1260813

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham B3 2PB, UK.

ISBN 978-1-78328-347-7

www.packtpub.com

Credits

Author

Bilgin Ibryam

Reviewer

Carsten Ringe

Acquisition Editor

Akram Hussain

Commissioning Editor

Priyanka Shah

Technical Editors

Pratik More

Harshad Vairat

Project Coordinator

Michelle Quadros

Proofreader

Linda Morris

Graphics

Ronak Dhruv

Yuvraj Mannari

Production Coordinator

Kirtee Shingan

Cover Work

Kirtee Shingan

Cover Image

Sheetal Aute

About the Author

Bilgin Ibryam is a software engineer with Master's degree in Computer Science and currently working for BBC in London. He is interested in a variety of technologies including application integration, message-oriented middleware, service-oriented architecture, and ERP systems. He is also an open source enthusiast, Apache OFBiz, and Apache Camel committer. In his spare time, he enjoys contributing to open source projects and blogging at www.ofbizian.com.

Bilgin can be contacted via Twitter at https://twitter.com/bibryam.

About the Reviewer

Carsten Ringe has been in the IT industry for almost 10 years now. After studying Electrotechnical Engineering at the University of Applied Sciences in Ostwestfalen-Lippe, he decided to follow his passion and focus his career on software development. Since then, he has been working in the following industries: Automation, Defense, Agriculture, and Logistics. He has experience in utilizing Web technologies such as Websphere, Jboss, and is striving for continuous deployments in his projects whenever possible. His current projects are based on Jboss ESB and Camel, and focus on the integration of logistic partners.

www.PacktPub.com

Support files, eBooks, discount offers and more

You might want to visit www.PacktPub.com for support files and downloads related to your book.

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at <[email protected]> for more details.

At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.

http://PacktLib.PacktPub.com

Do you need instant solutions to your IT questions? PacktLib is Packt’s online digital book library. Here, you can access, read and search across Packt’s entire library of books. 

Why Subscribe?

Fully searchable across every book published by PacktCopy and paste, print and bookmark contentOn demand and accessible via web browser

Free Access for Packt account holders

If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.

Preface

The world is becoming more connected than ever. There are hundreds of APIs on the Cloud, and more are added every day. Integrating existing systems, creating new applications, which can communicate easily with other applications, is becoming part of the everyday job of developers. Mastering an integration framework like Apache Camel, that can connect to a variety of systems and do message orchestration using well-known Enterprise Integration Patterns, is essential for any software engineer.

What this book covers

Creating a Camel project (Simple) provides a high-level overview of Camel architecture, and demonstrates how to create a simple message driven application.

Routing messages to different destinations (Simple) explains the message structure in Camel, and how to use it for routing messages with a Content-Based Router pattern.

Using components (Simple) shows how Camel utilizes URLs to configure components, and connect to a variety of systems.

Connecting routes (Simple) covers Message Exchange Patterns in Camel, and connecting routes with other parts of the applications.

Removing unwanted messages (Simple) introduces Message Filter and Idempotent Consumer patterns along with the powerful Bean Binding feature.

Transforming messages (Intermediate) demonstrates a variety of ways in which message transformations happens in Camel applications.

Splitting a message into many (Intermediate) presents the Splitter pattern and how the Camel threading model works.

Aggregating multiple messages into one (Intermediate) shows the Aggregator pattern and its usage in other patterns, such as Scatter-Gather and Composed Message Processor.

Reorganizing messages (Intermediate) introduces three more patterns used for changing the message order and frequency: Resequencer, Throttler, and Delayer.

Multicasting messages (Intermediate) shows how to send a message to multiple recipients using Recipient List and Wire Tap patterns.

Error handling and monitoring (Advanced) explains the Dead Letter Channel pattern, and the different techniques used in Camel for monitoring and dealing with errors.

Testing the messaging applications (Advanced) presents the different tools provided by Camel for testing the routing logic.

What you need for this book

In order to run the examples accompanying this book, you will need Java 6 or higher, Apache Maven 2.2.1 or higher, and Apache Camel version 2.11 or higher.

Who this book is for

This book is intended for Java developers who are new to Apache Camel and message oriented applications. It shows how to do application integration using the industry standard Enterprise Integration Patterns.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "In the Java DSL, we create a route by extending RouteBuilder and overriding the configure method."

A block of code is set as follows:

<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-core</artifactId> <version>${camel-version}</version> </dependency>

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback