Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Karaf Cellar

You're reading from   Learning Karaf Cellar Build and implement a complete clustering solution for the Apache Karaf OSGi container

Arrow left icon
Product type Paperback
Published in Jul 2014
Publisher
ISBN-13 9781783984602
Length 124 pages
Edition 1st Edition
Arrow right icon
Authors (2):
Arrow left icon
Jean Baptiste Onofre Jean Baptiste Onofre
Author Profile Icon Jean Baptiste Onofre
Jean Baptiste Onofre
Jean-Baptiste Onofré Jean-Baptiste Onofré
Author Profile Icon Jean-Baptiste Onofré
Jean-Baptiste Onofré
Arrow right icon
View More author details
Toc

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

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime