MuleESB / Apache Camel Interview Questions
What is the Camel architecture — CamelContext, Routes, Endpoints, Components, and Processors?
The Camel architecture has five cooperating building blocks:
- CamelContext: Runtime container owning all routes, components, endpoints, type converters, and thread pools.
- Route: A directed pipeline from(uri) through EIPs/Processors to to(uri). Each route has a unique ID.
- Endpoint: A named channel identified by URI. Acts as consumer in from() or producer in to().
- Component: Factory creating Endpoints for a URI scheme. FileComponent handles all file: URIs; auto-discovered via META-INF/services.
- Processor: Any object implementing org.apache.camel.Processor that mutates an Exchange. All EIP constructs compile to chained Processors.
CamelContext ctx = new DefaultCamelContext();
ctx.addRoutes(new RouteBuilder() {
public void configure() {
from("timer:tick?period=5000")
.process(e -> e.getMessage().setBody("ping"))
.to("log:output");
}
});
ctx.start();
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
