官术网_书友最值得收藏!

Introduction

This chapter explains how to make use of Camel's built-in EIPs (Enterprise Integration Patterns) to write typical integration logic. Once a message is consumed from an endpoint, you will want to make decisions about what steps should be taken to process it (such as routing), and these EIPs provide you with many different message routing options. The EIPs are used within routes defined by the Camel DSLs (Domain Specific Language).

The EIPs are first class constructs within the DSL. As such, your integration logic will be able to more clearly express how the message is being routed–that is, which EIP is being used. The more you can use these EIP DSL statements within your Camel code, versus doing a lot of routing within custom Java processors, the easier it will be for you and others to understand what the Camel route is doing for future maintenance. This is a key value of Camel, so take full advantage of it within your code, and you will find that you have gained more flexibility and clarity in even the most complex integration scenarios than you ever had with your past custom code efforts.

A number of Camel architectural concepts are used throughout this chapter. There is a broader overview of Camel concepts in the Preface. Full details can be found on the Apache Camel website at http://camel.apache.org.

The code for this chapter is contained within the camel-cookbook-routing module of the examples.

主站蜘蛛池模板: 东源县| 铜川市| 奉化市| 资源县| 南乐县| 鹰潭市| 四平市| 安宁市| 天柱县| 奉化市| 绿春县| 阿瓦提县| 郴州市| 临江市| 海南省| 苗栗县| 定襄县| 宿松县| 乐昌市| 即墨市| 雅江县| 英吉沙县| 邳州市| 万源市| 彭阳县| 肥乡县| 福鼎市| 嘉鱼县| 仙桃市| 建始县| 略阳县| 华容县| 类乌齐县| 五原县| 普格县| 弥勒县| 岚皋县| 宝兴县| 江达县| 延庆县| 曲阳县|