Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between processor , component and end point

Tags:

apache-camel

I am studying Apache Camel.

Could some one please explain the difference between a processor, component and endpoint with regard to Apache Camel.

like image 362
jch Avatar asked Oct 22 '13 03:10

jch


1 Answers

A component allows you to talk with other systems. It allows you to send or receive messages and encapsulates the protocol to deal with another system. For e.g. jms-component allows to talk with JMS brokers.

An endpoint is nothing but the channel by which you send or receive a message through component e.g. "jms:queue:order" this defines a jms endpoint which is a queue from where your (jms) component will either consume or publish a message.

While a processor is piece of code which goes in between routes. There you write code to manipulate (transform/enrich/extract etc.) the message or have some integration logic.

For more details refer to camel's documentation

like image 70
Hussain Pirosha Avatar answered Nov 12 '22 23:11

Hussain Pirosha