Apache Camel developer's cookbook

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

Descripción completa

Detalles Bibliográficos
Autor principal: Cranton, Scott (-)
Otros Autores: Korab, Jakub
Formato: Libro electrónico
Idioma:Inglés
Publicado: Birmingham : Packt Publishing 2013.
Edición:1st edition
Colección:Quick answers to common problems
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009628100506719
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Authors; Acknowledgments; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1:Structuring Routes; Introduction; Using Camel in a Java application; Embedding Camel in a Spring application; Using Camel components; Reusing routing logic by connecting routes; Asynchronously connecting routes; Spanning Camel contexts within a single Java process; Using external properties in Camel routes; Reusing endpoints; Reusing routing logic through template routes; Controlling route startup and shutdown; Chapter 2:Message Routing; Introduction
  • Content Based RoutingFiltering out unwanted messages; Wire Tap - sending a copy of the message elsewhere; Multicast - routing the same message to many endpoints; Recipient List - routing a message to a list of endpoints; Throttler - restricting the number of messages flowing to an endpoint; Request-response route sending a one-way message; One-way route waiting on a request-response endpoint; Dynamic Routing - making routing decisions at runtime; Load balancing across a number of endpoints; Routing Slip - routing a message to a fixed list of endpoints; Chapter 3:Routing to your Code
  • IntroductionRouting messages directly to a Java method; Sending messages directly to a Camel endpoint; Using a Java method as a Predicate; Writing a custom Camel Processor; Mapping the message to method parameters; Writing a custom data marshaller; Writing a custom data type converter; Chapter 4:Transformation; Introduction; Transforming using a Simple Expression; Transforming inline with XQuery; Transforming with XSLT; Transforming from Java to XML with JAXB; Transforming from Java to JSON; Transforming from XML to JSON; Parsing comma-separated values (CSV)
  • Enriching your content with some help from other endpointsNormalizing messages into a common XML format; Chapter 5:Splitting and Aggregating; Introduction; Splitting a message into fragments; Splitting XML messages; Processing split messages in parallel; Aggregating related messages; Aggregating with timeouts; Aggregating with intervals; Processing aggregated messages in parallel; Splitting a message, and processing and gathering responses; Splitting messages and re-aggregating them using different criteria; Chapter 6:Parallel Processing; Introduction
  • Increasing message consumption through multiple endpoint consumersSpreading the load within a route using a set of threads; Routing a request asynchronously; Using custom thread pools; Using thread pool profiles; Working with asynchronous APIs; Chapter 7:Error Handling and Compensation; Introduction; Logging errors; Dead Letter Channel - handling errors later; Retrying an operation; Conditional retry; Customizing each redelivery attempt; Catching exceptions; Marking exceptions as handled; Fine-grained error handling using doTry...doCatch; Defining completion actions
  • Defining completion actions dynamically