look at the individual ny new concepts, so let’s take some time to go over them one by e CamelContext, which is Camel’s runtime. hat the Camel- of sorts, judging n think of it as m, which keeps e most notable Context keeps igure 1.7, there or the Camel- of. These are Components CamelContext Endpoints Routes Type converters Registry Data formats Languages Figure 1.7 The CamelContext provides access to many useful services, the most notable being components, type converters, a registry, endpoints, routes, data formats, and languages.
of view, components are fairly simple: ated with a name that’s used in a URI, and they act as a factory of endpoi ple, a FileComponent is referred to by file in a URI, and it creates F The endpoint is perhaps an even more fundamental concept in Camel. ENDPOINT An endpoint is the Camel abstraction that models the end of a cha which a system can send or receive messages. This is illustrated in figure ` Data Message endpoint Sender application ` Receiver application Message endpoint Data Message Channel Figure 1 An endpo a neutra allowing to integr Licensed to DJ Daugherty <[email protected]> example: jms:incomingOrders
DB New DB www.me.com -> index.html (1 sec.) www.they.com -> 700 files (45 sec.) schedule for clean in 60 days schedule for clean tomorrow blocking call Event Driven Process Legacy Process
DB New DB www.me.com -> index.html (1 sec.) www.they.com -> 700 files (45 sec.) schedule for clean in 60 days schedule for clean tomorrow Event Driven Process immediate response w/ token Response Servlet token exists? reply queue scan queue Processor