SlideShare a Scribd company logo
2
Most read
12
Most read
14
Most read
Apache Camel interview Questions and Answers
What is Apache Camel ?
Apache Camel is a rule-based routing and
provides a Java object-based implementation of
Integration Patterns using an API (or declarative
Specific Language) to configure routing and
better understand what is apache camel, lets first
are Enterprise Applications and Enterprise
Apache Camel interview Questions and Answers
How to implement Error Handling using Apache Camel ?
•Error handling in Camel can roughly be separated into two
transactional
•Transactional
What is a Message in Apache Camel ?
•Message implements the Message pattern and represents an
message as part of an Exchange.It contains the data being
consists of the following fields-Unique Identifier
•Headers
•Body
•Fault Flag
What is an exchange in Apache Camel ?
•Camel Exchange represents an abstraction for an exchange of messages
•which involves a request
•message and its corresponding reply or an exception message.
•It consists of-Exchange ID
•Message Exchange Pattern
•InOnly message
•InOut message
•Exception
•Properties
How to read data from queues using Apache Camel ?
We make use of Apache Camel JMS Component. We will be reading from one
JMS Queue and sending the message to another jms queue. Also we will be
making use of ActiveMQ queues.
What are Components in Apache Camel ?
Component act as an endpoint factory using which we can interact with
external systems. Camel provides a large number of components using
externals systems.
For example here we have to transfer files from one folder to another, so
component at both the end of the message channel.
What is CamelContext ?
We cannot run our Camel Application only using the route. We also need
acts as a runtime system that runs and manages the routes. It is
aspects of a route.
What is Quartz Library? How to use it with Apache Camel
Quartz is a richly featured, open source job scheduling library that can be
any Java application - from the smallest stand-alone application to the
How to implement Exception Handling in Apache Camel ?
•Using Apache Camel Exception Handling can be implemented
Block
•Using OnException Block
Enlist few good uses for Apache Camel?
Apache Camel is a good choice when you want to integrate several applications with
different protocols and technologies. You can use it with Java, Scala, Groovy or Spring
XML.
What is Processor in Apache Camel?
Processor is Apache Camel is an interface that is used to implement consumers of
message exchanges or Message Translator.
What are Components in Apache Camel?
A Component in Apache Camel is a factory or collection of Endpoint instances. We
can configure Component instances explicitly and add them to a CamelContext in an
IoC container like Spring or Guice. Components can be auto-discovered using URIs.
Apache Camel provides numerous pre-built components. Below we have listed some
important Camel components from the core module.
•Bean
•Direct
•File
•Log
•SEDA
•Timer
What are routes in Apache Camel?
Routes plays a critical role in Apache Camel. The application flow and logic are specified here.In
Camel we can define routing rules using a Java DSL.
How to rollback transaction in Apache Camel DSL?
To rollback transaction in Apache Camel DSL, you can perform the following steps:
•Remove Spring transaction manager.
•Remove Spring transaction policy.
•Remove transacted() from Camel route.
What Are Eips In Apache Camel?
EIPS (ENTERPRISE INTEGRATION PATTERNS) is an architectural design pattern that defines code-
agnostic workflows for common business tasks.
What is Messaging?
Messaging is a communication mechanism used for
system interactions. In software development messaging
enables distributed communication that is loosely
coupled. A messaging client can send messages to, and
receive messages from, any other client.
What is Advanced Message Queuing Protocol (AMQP)
?
The Advanced Message Queuing Protocol (AMQP) is an
open standard application layer protocol for message-
oriented middleware. AMQP 0-9-1 is a binary messaging
protocol and semantic framework for microservices and
enterprise messaging.
How to start the execution of routes Apache Camel?
To start the execution of routes Apache Camel, you can perform the following steps:
•Create a CamelContext.
•Optionally, configure components or endpoints.
•Add whatever routing rules you wish using the DSL and RouteBuilder or using XML DSL.
•Start the Camel context.
What are DSLs and which DSLs have you used?
Routes in a variety of domain-specific languages (DSL).The most popular ones are Java DSL -
A Java based DSL using the fluent builder style. Spring XML - A XML based DSL in Spring XML
files
What is an ESB? Have you deployed camel on any ESB?
ESB stands for Enterprise Service Bus. It can be defined as a tool designed to help implement
an application using SOA principles Not for all projects projects is the use of ESB an optimum
solution ESB should be used when projects involve integrating a number of Endpoints like
Webservices, JMS, FTP etc. Have deployed JBoss Fuse ESB for Apache Camel Deployement.
Apache camel Kafka
It is basically an open-source framework. It
basically or mainly focuses on making things
easier. Also, they make the integration
process very simple and sorted for the
developers.
It has a very unique design messaging
system. It is a log service that is distributed
and partitioned.
It basically focuses on enterprise integration
patterns. Also, it is really and highly
configurable.
It has a very high and reliable performance
efficiency. Also, it is really scalable.
What is basic differences between Apache Camel and Kafka?
What are endpoints in apache camel?
Camel supports the Message Endpoint pattern using the Endpoint
interface. Endpoints are usually created by a Component and Endpoints
are usually referred to in the DSL via their URIs.
What are various components in apache camel? Which ones have you
used?
Apache camel provides us with a number of components. These
components make interacting create endpoints with which a system can
interact with other external systems. For example using an ActiveMQ
component we expose an ActiveMQ endpoint for interaction with external
system. There are more than 100 components provided by Apache
Camel. Some of them are FTP,JMX, Webservices, HTTP. Apache camel
also allows users to create custom components.
How are exception handled using Apache Camel?
Exception can be handled using the <try>
<catch> block, <OnException> block or the
<errorHandler> block.
The errorHandler is used to handle any uncaught
Exception that gets thrown during the routing and
processing of a message. Conversely,
onException is used to handle specific Exception
types when they are thrown.
What is Redelivery policy in Apache Camel?
A redelivery policy defines rules when Camel Error Handler perform
redelivery attempts. For example you can setup rules that state how
many times to try redelivery, and the delay in between attempts, and so
forth.
What is RouterContext?
It is now possible to define routes outside <camelContext/> which you do
in a new <routeContext/> tag. The routes defined in <routeContext/> can
be reused by multiple <camelContext/>. However its only the definition
which is reused. At runtime each CamelContext will create its own
instance of the route based on the definition.
What is Apache Camel Idempotent Consumer pattern?
In Apache Camel we use the Idempotent Consumer pattern to filter out
duplicate messages. Consider a scenario where we have to process files
only once. If there are any duplicates they should be skipped. Using
Apache Camel we can use Idempotent Consumer directly within the
component so it will skip files that are processed once. This feature is be
enabled by setting the idempotent=true option. In order to achieve this
Apache Camel keeps track of the consumed files using a message id
which is stored in the repository called Idempotent Repository. Apache
Camel provides the following types of IdempotentRepository.
THANK YOU
Like the Video and Subscribe the Channel

More Related Content

What's hot (20)

PDF
Gitlab ci-cd
Dan MAGIER
 
PPTX
Java 9 Module System Introduction
Dan Stine
 
PDF
Quarkus tips, tricks, and techniques
Red Hat Developers
 
PDF
Spring Boot 3 And Beyond
VMware Tanzu
 
PDF
Presentation test de_charge_jmeter
syloemontpellier
 
PDF
HBase for Architects
Nick Dimiduk
 
PDF
Microservice Architecture using Spring Boot with React & Redux
NexThoughts Technologies
 
PPTX
Getting started with agile database migrations for java flywaydb
Girish Bapat
 
PPTX
Spring Framework
tola99
 
PPTX
Spring boot
Gyanendra Yadav
 
PDF
Introduction to docker
John Willis
 
PPTX
Introduction to Maven
Mindfire Solutions
 
PPTX
Introduction à spring boot
Antoine Rey
 
PDF
PUC SE Day 2019 - SpringBoot
Josué Neis
 
PDF
Case Study: Migrating Hyperic from EJB to Spring from JBoss to Apache Tomcat
VMware Hyperic
 
PPTX
Grails and Ajax
TO THE NEW | Technology
 
PDF
Unified Big Data Processing with Apache Spark (QCON 2014)
Databricks
 
PDF
Introducing GitLab (June 2018)
Noa Harel
 
PDF
ABS 2013: Dive into Android Networking - Adding Ethernet Connectivity
Benjamin Zores
 
PPTX
Maven tutorial
Dragos Balan
 
Gitlab ci-cd
Dan MAGIER
 
Java 9 Module System Introduction
Dan Stine
 
Quarkus tips, tricks, and techniques
Red Hat Developers
 
Spring Boot 3 And Beyond
VMware Tanzu
 
Presentation test de_charge_jmeter
syloemontpellier
 
HBase for Architects
Nick Dimiduk
 
Microservice Architecture using Spring Boot with React & Redux
NexThoughts Technologies
 
Getting started with agile database migrations for java flywaydb
Girish Bapat
 
Spring Framework
tola99
 
Spring boot
Gyanendra Yadav
 
Introduction to docker
John Willis
 
Introduction to Maven
Mindfire Solutions
 
Introduction à spring boot
Antoine Rey
 
PUC SE Day 2019 - SpringBoot
Josué Neis
 
Case Study: Migrating Hyperic from EJB to Spring from JBoss to Apache Tomcat
VMware Hyperic
 
Grails and Ajax
TO THE NEW | Technology
 
Unified Big Data Processing with Apache Spark (QCON 2014)
Databricks
 
Introducing GitLab (June 2018)
Noa Harel
 
ABS 2013: Dive into Android Networking - Adding Ethernet Connectivity
Benjamin Zores
 
Maven tutorial
Dragos Balan
 

Similar to Apache Camel interview Questions and Answers (20)

PDF
Apache Camel with Spring boot
Knoldus Inc.
 
PDF
Apache Camel with Spring boot
Knoldus Inc.
 
PPTX
Apache Camel framework Presentation and selection of apache camel for various...
chetansharma041
 
PDF
Introduction To Apache Camel
Knoldus Inc.
 
PDF
Introduction to Apache Camel
Knoldus Inc.
 
PDF
Introduction to Apache Camel.pdf
Knoldus Inc.
 
PPT
An introduction to Apache Camel
Kapil Kumar
 
PDF
Introduction of Apache Camel
Knoldus Inc.
 
PPTX
Building flexible ETL pipelines with Apache Camel on Quarkus
Ivelin Yanev
 
PDF
EIP In Practice
Bruce Snyder
 
PPT
Riding with camel
Sunitha Satyadas
 
PPTX
Using Apache Camel as AKKA
Johan Edstrom
 
PDF
Frequently asked MuleSoft Interview Questions and Answers from Techlightning
Arul ChristhuRaj Alphonse
 
PDF
Best Practices for Middleware and Integration Architecture Modernization with...
Claus Ibsen
 
ODP
The Art of Message Queues - TEKX
Mike Willbanks
 
ODP
Red Hat Open Day JBoss Fuse
Adrian Gigante
 
PDF
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
Amazon Web Services Korea
 
PPT
Succeding with the Apache SOA stack
Johan Edstrom
 
PPTX
Apache servicemix1
manojkumar024
 
PDF
quickguide-einnovator-11-spring-integration
jorgesimao71
 
Apache Camel with Spring boot
Knoldus Inc.
 
Apache Camel with Spring boot
Knoldus Inc.
 
Apache Camel framework Presentation and selection of apache camel for various...
chetansharma041
 
Introduction To Apache Camel
Knoldus Inc.
 
Introduction to Apache Camel
Knoldus Inc.
 
Introduction to Apache Camel.pdf
Knoldus Inc.
 
An introduction to Apache Camel
Kapil Kumar
 
Introduction of Apache Camel
Knoldus Inc.
 
Building flexible ETL pipelines with Apache Camel on Quarkus
Ivelin Yanev
 
EIP In Practice
Bruce Snyder
 
Riding with camel
Sunitha Satyadas
 
Using Apache Camel as AKKA
Johan Edstrom
 
Frequently asked MuleSoft Interview Questions and Answers from Techlightning
Arul ChristhuRaj Alphonse
 
Best Practices for Middleware and Integration Architecture Modernization with...
Claus Ibsen
 
The Art of Message Queues - TEKX
Mike Willbanks
 
Red Hat Open Day JBoss Fuse
Adrian Gigante
 
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
Amazon Web Services Korea
 
Succeding with the Apache SOA stack
Johan Edstrom
 
Apache servicemix1
manojkumar024
 
quickguide-einnovator-11-spring-integration
jorgesimao71
 
Ad

More from jeetendra mandal (20)

PPTX
what is OSI model
jeetendra mandal
 
PPTX
What is AWS Cloud Watch
jeetendra mandal
 
PPTX
What is AWS Fargate
jeetendra mandal
 
PPTX
Eventual consistency vs Strong consistency what is the difference
jeetendra mandal
 
PPTX
Batch Processing vs Stream Processing Difference
jeetendra mandal
 
PPTX
Difference between Database vs Data Warehouse vs Data Lake
jeetendra mandal
 
PPTX
Difference between Client Polling vs Server Push vs Websocket vs Long Polling
jeetendra mandal
 
PPTX
Difference between TLS 1.2 vs TLS 1.3 and tutorial of TLS2 and TLS2 version c...
jeetendra mandal
 
PPTX
Difference Program vs Process vs Thread
jeetendra mandal
 
PPTX
Carrier Advice for a JAVA Developer How to Become a Java Programmer
jeetendra mandal
 
PPTX
How to become a Software Tester Carrier Path for Software Quality Tester
jeetendra mandal
 
PPTX
How to become a Software Engineer Carrier Path for Software Developer
jeetendra mandal
 
PPTX
Events vs Notifications
jeetendra mandal
 
PPTX
Microservice Architecture Software Architecture Microservice Design Pattern
jeetendra mandal
 
PPTX
Event Driven Software Architecture Pattern
jeetendra mandal
 
PPTX
Top 5 Software Architecture Pattern Event Driven SOA Microservice Serverless ...
jeetendra mandal
 
PPTX
Observability vs APM vs Monitoring Comparison
jeetendra mandal
 
PPTX
Disaster Recovery vs Data Backup what is the difference
jeetendra mandal
 
PPTX
What is Spinnaker? Spinnaker tutorial
jeetendra mandal
 
PPTX
Difference between Github vs Gitlab vs Bitbucket
jeetendra mandal
 
what is OSI model
jeetendra mandal
 
What is AWS Cloud Watch
jeetendra mandal
 
What is AWS Fargate
jeetendra mandal
 
Eventual consistency vs Strong consistency what is the difference
jeetendra mandal
 
Batch Processing vs Stream Processing Difference
jeetendra mandal
 
Difference between Database vs Data Warehouse vs Data Lake
jeetendra mandal
 
Difference between Client Polling vs Server Push vs Websocket vs Long Polling
jeetendra mandal
 
Difference between TLS 1.2 vs TLS 1.3 and tutorial of TLS2 and TLS2 version c...
jeetendra mandal
 
Difference Program vs Process vs Thread
jeetendra mandal
 
Carrier Advice for a JAVA Developer How to Become a Java Programmer
jeetendra mandal
 
How to become a Software Tester Carrier Path for Software Quality Tester
jeetendra mandal
 
How to become a Software Engineer Carrier Path for Software Developer
jeetendra mandal
 
Events vs Notifications
jeetendra mandal
 
Microservice Architecture Software Architecture Microservice Design Pattern
jeetendra mandal
 
Event Driven Software Architecture Pattern
jeetendra mandal
 
Top 5 Software Architecture Pattern Event Driven SOA Microservice Serverless ...
jeetendra mandal
 
Observability vs APM vs Monitoring Comparison
jeetendra mandal
 
Disaster Recovery vs Data Backup what is the difference
jeetendra mandal
 
What is Spinnaker? Spinnaker tutorial
jeetendra mandal
 
Difference between Github vs Gitlab vs Bitbucket
jeetendra mandal
 
Ad

Recently uploaded (20)

PPTX
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
PDF
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
PDF
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
PDF
AI + DevOps = Smart Automation with devseccops.ai.pdf
Devseccops.ai
 
PDF
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
PDF
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
PPTX
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
PDF
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
PPTX
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
PDF
Driver Easy Pro 6.1.1 Crack Licensce key 2025 FREE
utfefguu
 
PDF
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
PDF
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
PPTX
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
PDF
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
PDF
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
PDF
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
PPTX
Tally software_Introduction_Presentation
AditiBansal54083
 
PDF
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
PDF
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
AI + DevOps = Smart Automation with devseccops.ai.pdf
Devseccops.ai
 
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
Driver Easy Pro 6.1.1 Crack Licensce key 2025 FREE
utfefguu
 
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
Tally software_Introduction_Presentation
AditiBansal54083
 
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 

Apache Camel interview Questions and Answers

  • 2. What is Apache Camel ? Apache Camel is a rule-based routing and provides a Java object-based implementation of Integration Patterns using an API (or declarative Specific Language) to configure routing and better understand what is apache camel, lets first are Enterprise Applications and Enterprise
  • 4. How to implement Error Handling using Apache Camel ? •Error handling in Camel can roughly be separated into two transactional •Transactional What is a Message in Apache Camel ? •Message implements the Message pattern and represents an message as part of an Exchange.It contains the data being consists of the following fields-Unique Identifier •Headers •Body •Fault Flag
  • 5. What is an exchange in Apache Camel ? •Camel Exchange represents an abstraction for an exchange of messages •which involves a request •message and its corresponding reply or an exception message. •It consists of-Exchange ID •Message Exchange Pattern •InOnly message •InOut message •Exception •Properties How to read data from queues using Apache Camel ? We make use of Apache Camel JMS Component. We will be reading from one JMS Queue and sending the message to another jms queue. Also we will be making use of ActiveMQ queues.
  • 6. What are Components in Apache Camel ? Component act as an endpoint factory using which we can interact with external systems. Camel provides a large number of components using externals systems. For example here we have to transfer files from one folder to another, so component at both the end of the message channel. What is CamelContext ? We cannot run our Camel Application only using the route. We also need acts as a runtime system that runs and manages the routes. It is aspects of a route. What is Quartz Library? How to use it with Apache Camel Quartz is a richly featured, open source job scheduling library that can be any Java application - from the smallest stand-alone application to the
  • 7. How to implement Exception Handling in Apache Camel ? •Using Apache Camel Exception Handling can be implemented Block •Using OnException Block Enlist few good uses for Apache Camel? Apache Camel is a good choice when you want to integrate several applications with different protocols and technologies. You can use it with Java, Scala, Groovy or Spring XML. What is Processor in Apache Camel? Processor is Apache Camel is an interface that is used to implement consumers of message exchanges or Message Translator.
  • 8. What are Components in Apache Camel? A Component in Apache Camel is a factory or collection of Endpoint instances. We can configure Component instances explicitly and add them to a CamelContext in an IoC container like Spring or Guice. Components can be auto-discovered using URIs. Apache Camel provides numerous pre-built components. Below we have listed some important Camel components from the core module. •Bean •Direct •File •Log •SEDA •Timer
  • 9. What are routes in Apache Camel? Routes plays a critical role in Apache Camel. The application flow and logic are specified here.In Camel we can define routing rules using a Java DSL. How to rollback transaction in Apache Camel DSL? To rollback transaction in Apache Camel DSL, you can perform the following steps: •Remove Spring transaction manager. •Remove Spring transaction policy. •Remove transacted() from Camel route. What Are Eips In Apache Camel? EIPS (ENTERPRISE INTEGRATION PATTERNS) is an architectural design pattern that defines code- agnostic workflows for common business tasks.
  • 10. What is Messaging? Messaging is a communication mechanism used for system interactions. In software development messaging enables distributed communication that is loosely coupled. A messaging client can send messages to, and receive messages from, any other client. What is Advanced Message Queuing Protocol (AMQP) ? The Advanced Message Queuing Protocol (AMQP) is an open standard application layer protocol for message- oriented middleware. AMQP 0-9-1 is a binary messaging protocol and semantic framework for microservices and enterprise messaging.
  • 11. How to start the execution of routes Apache Camel? To start the execution of routes Apache Camel, you can perform the following steps: •Create a CamelContext. •Optionally, configure components or endpoints. •Add whatever routing rules you wish using the DSL and RouteBuilder or using XML DSL. •Start the Camel context. What are DSLs and which DSLs have you used? Routes in a variety of domain-specific languages (DSL).The most popular ones are Java DSL - A Java based DSL using the fluent builder style. Spring XML - A XML based DSL in Spring XML files What is an ESB? Have you deployed camel on any ESB? ESB stands for Enterprise Service Bus. It can be defined as a tool designed to help implement an application using SOA principles Not for all projects projects is the use of ESB an optimum solution ESB should be used when projects involve integrating a number of Endpoints like Webservices, JMS, FTP etc. Have deployed JBoss Fuse ESB for Apache Camel Deployement.
  • 12. Apache camel Kafka It is basically an open-source framework. It basically or mainly focuses on making things easier. Also, they make the integration process very simple and sorted for the developers. It has a very unique design messaging system. It is a log service that is distributed and partitioned. It basically focuses on enterprise integration patterns. Also, it is really and highly configurable. It has a very high and reliable performance efficiency. Also, it is really scalable. What is basic differences between Apache Camel and Kafka?
  • 13. What are endpoints in apache camel? Camel supports the Message Endpoint pattern using the Endpoint interface. Endpoints are usually created by a Component and Endpoints are usually referred to in the DSL via their URIs. What are various components in apache camel? Which ones have you used? Apache camel provides us with a number of components. These components make interacting create endpoints with which a system can interact with other external systems. For example using an ActiveMQ component we expose an ActiveMQ endpoint for interaction with external system. There are more than 100 components provided by Apache Camel. Some of them are FTP,JMX, Webservices, HTTP. Apache camel also allows users to create custom components.
  • 14. How are exception handled using Apache Camel? Exception can be handled using the <try> <catch> block, <OnException> block or the <errorHandler> block. The errorHandler is used to handle any uncaught Exception that gets thrown during the routing and processing of a message. Conversely, onException is used to handle specific Exception types when they are thrown.
  • 15. What is Redelivery policy in Apache Camel? A redelivery policy defines rules when Camel Error Handler perform redelivery attempts. For example you can setup rules that state how many times to try redelivery, and the delay in between attempts, and so forth. What is RouterContext? It is now possible to define routes outside <camelContext/> which you do in a new <routeContext/> tag. The routes defined in <routeContext/> can be reused by multiple <camelContext/>. However its only the definition which is reused. At runtime each CamelContext will create its own instance of the route based on the definition.
  • 16. What is Apache Camel Idempotent Consumer pattern? In Apache Camel we use the Idempotent Consumer pattern to filter out duplicate messages. Consider a scenario where we have to process files only once. If there are any duplicates they should be skipped. Using Apache Camel we can use Idempotent Consumer directly within the component so it will skip files that are processed once. This feature is be enabled by setting the idempotent=true option. In order to achieve this Apache Camel keeps track of the consumed files using a message id which is stored in the repository called Idempotent Repository. Apache Camel provides the following types of IdempotentRepository.
  • 17. THANK YOU Like the Video and Subscribe the Channel