Book Image

Learning Karaf Cellar

By : Jean Baptiste Onofre, Jean-Baptiste Onofré
Book Image

Learning Karaf Cellar

By: Jean Baptiste Onofre, Jean-Baptiste Onofré

Overview of this book

Table of Contents (16 chapters)

The communication between remote routes


In Camel, when you are local to one Karaf instance, you have different ways to use a route from another route as follows:

  • The direct endpoint is synchronous, which is local to one CamelContext (only routes in the same CamelContext component can communicate using direct).

  • The direct-vm endpoint is exactly the same as direct but global to the JVM. It means that routes from different CamelContext can communicate using direct-vm.

  • The staged event-driven architecture (SEDA) endpoint is asynchronous, which is local to one CamelContext (only routes in the same CamelContext component can communicate using SEDA). A seda endpoint (producer) creates a queue (BlockingQueue) and pushes messages in this queue. Another seda endpoint (consumer) consumes from this queue. A producer and consumer use different threads.

  • The vm endpoint is exactly the same as seda but global to the JVM. It means that routes from different CamelContext can communicate using vm.

These components...