万本电子书0元读

万本电子书0元读

顶部广告

Apache Camel Developer's Cookbook电子书

售       价:¥

15人正在读 | 0人评论 9.8

作       者:Scott Cranton

出  版  社:Packt Publishing

出版时间:2013-12-26

字       数:321.0万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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.Camel Enterprise Integration 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.
目录展开

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 aggregated messages in parallel

Getting ready

How to do it...

How it works...

There's more...

See also

Splitting a message, and processing and gathering responses

Getting ready

How to do it...

How it works...

There's more...

See also

Splitting messages and re-aggregating them using different criteria

Getting ready

How to do it...

How it works...

There's more...

See also

6. Parallel Processing

Introduction

Increasing message consumption through multiple endpoint consumers

Getting ready

How to do it...

How it works...

There's more...

See also

Spreading the load within a route using a set of threads

Getting ready

How to do it...

How it works...

There's more...

See also

Routing a request asynchronously

Getting ready

How to do it...

How it works...

There's more...

See also

Using custom thread pools

Getting ready

How to do it...

How it works...

There's more...

See also

Using thread pool profiles

Getting ready

How to do it...

How it works...

There's more...

See also

Working with asynchronous APIs

Getting ready

How to do it...

How it works...

There's more...

See also

7. Error Handling and Compensation

Introduction

Logging errors

Getting ready

How to do it...

How it works...

There's more...

See also

Dead Letter Channel – handling errors later

Getting ready

How to do it...

How it works...

There's more...

See also

Retrying an operation

Getting ready

How to do it...

How it works...

There's more...

See also

Conditional retry

Getting ready

How to do it...

How it works...

There's more...

See also

Customizing each redelivery attempt

Getting ready

How to do it...

How it works...

There's more...

See also

Catching exceptions

Getting ready

How to do it...

How it works...

There's more...

See also

Marking exceptions as handled

Getting ready

How to do it...

How it works...

There's more...

See also

Fine-grained error handling using doTry…doCatch

Getting ready

How to do it...

How it works...

There's more...

See also

Defining completion actions

Getting ready

How to do it...

How it works...

There's more...

See also

Defining completion actions dynamically

Getting ready

How to do it...

How it works...

There's more...

See also

8. Transactions and Idempotency

Introduction

Preventing duplicate invocation of routing logic

Getting ready

How to do it...

How it works...

There's more...

See also

Transactional file consumption

Getting ready

How to do it...

How it works...

There's more...

See also

Using transactions with a database

Getting ready

How to do it...

How it works...

There's more...

See also

Limiting the scope of a transaction

Getting ready

How to do it...

How it works...

There's more...

Rolling back a transaction

Getting ready

How to do it...

How it works...

There's more...

Using transactions with messaging

Getting ready

How to do it...

How it works...

There's more...

See also

Idempotency inside transactions

Getting ready

How to do it...

How it works...

There's more...

See also

Setting up XA transactions over multiple transactional resources

Getting ready

How to do it...

How it works...

There's more...

See also

9. Testing

Introduction

Testing routes defined in Java

Getting ready

How to do it...

How it works...

There's more...

See also

Using mock endpoints to verify routing logic

Getting ready

How to do it...

How it works...

There's more...

See also

Replying from mock endpoints

Getting ready

How to do it...

How it works...

See also

Testing routes defined in Spring

Getting ready

How to do it...

How it works...

There's more...

See also

Testing routes defined in OSGi Blueprint

Getting ready

How to do it...

How it works...

There's more...

See also

Auto-mocking of endpoints

Getting ready

How to do it...

How it works...

There's more...

Validating route behavior under heavy load

Getting ready

How to do it...

How it works...

There's more...

See also

Unit testing processors and Bean Bindings

Getting ready

How to do it...

How it works...

There's more...

See also

Testing routes with fixed endpoints using AOP

Getting ready

How to do it...

How it works...

There's more...

See also

Testing routes with fixed endpoints using conditional events

Getting ready

How to do it...

How it works...

There's more...

See also

10. Monitoring and Debugging

Introduction

Logging meaningful steps within your route

Getting ready

How to do it...

How it works...

There's more...

See also

Debugging using logging

Getting ready

How to do it...

How it works...

There's more...

See also

Throughput logging

Getting ready

How to do it...

How it works...

There's more...

See also

Enabling step-by-step tracing in code

Getting ready

How to do it...

How it works...

There's more...

See also

Disabling JMX

Getting ready

How to do it...

How it works...

There's more...

See also

Configuring JMX

Getting ready

How to do it...

How it works...

There's more...

See also

Naming your routes to make it easier to monitor

Getting ready

How to do it...

How it works...

There's more...

See also

Adding JMX attributes and operations

Getting ready

How to do it...

How it works...

There's more...

See also

Monitoring other systems using the Camel JMX Component

Getting ready

How to do it...

How it works...

There's more...

See also

Setting breakpoints in your routes

Getting ready

How to do it...

How it works...

There's more...

See also

11. Security

Introduction

Encrypting configuration properties

Getting ready

How to do it...

How it works...

There's more...

See also

Digitally signing and verifying messages

Getting ready

How to do it...

How it works...

There's more...

See also

Encrypting and decrypting a message

Getting ready

How to do it...

How it works...

There's more...

See also

Encrypting all or parts of an XML message

Getting ready

How to do it...

How it works...

There's more...

See also

Authentication and authorization using Spring Security

Getting ready

How to do it...

How it works...

There's more...

See also

12. Web Services

Introduction

Generating the service stubs from a WSDL

Getting ready

How to do it...

How it works...

There's more...

See also

Invoking a remote web service from Camel

Getting ready

How to do it...

How it works...

There's more...

See also

Implementing a web service with a Camel route

Getting ready

How to do it...

How it works...

There's more...

See also

Providing multiple web service operations within a single route

Getting ready

How to do it...

How it works...

There's more...

See also

Handling web service faults

Getting ready

How to do it...

How it works...

There's more...

See also

Web service proxying

Getting ready

How to do it...

How it works...

There's more...

See also

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部