What is the purpose of routePolicy in ESB ?

Five Stars

What is the purpose of routePolicy in ESB ?

Hi,

 

I have one route already created. I'm trying to understand that.

 

Here is the structure.

 

cConfig component 

 

import org.apache.camel.impl.ThrottlingInflightRoutePolicy;

ThrottlingInflightRoutePolicy maxInflightPolicy = new ThrottlingInflightRoutePolicy();
maxInflightPolicy.setMaxInflightExchanges(20);

 

My First Question here is, Is setMaxInflightExchanges count is the max number of messages which can fit inside a queue ?

 

 

cFile--->cJavaDSLProcessor----->cSetHeader----->cLog----->cSetHeader--->cConvertBodyTo---->cMessageRouter--->SoOn------

 

Below are the component's settings:

 

1) In cFile there is some directory path is present 

 

Question: Does cFile read files or just pass the name and path of file ? What's happening in this case ? Does cFile always receive the path of file from queue set up in route ?

 

 

2) In cJavaDSL Processor below code is mentioned

 

.handleFault().routePolicy(maxInflightPolicy).threads(15).maxPoolSize(25)

 

Question: What's the purpose of this code ?  I'm not able to find these method anywhere online. Could please anyone help to understand this ?

 

3) In cSetHeader component follow details are mentioned

 

Name(MessageInterface)  Language(Constant) value("0") 

 

Question: This component is setting header with a name of MessageInterface and value is "0". What does it means ? What's a purpose behind that ?

 

Thanks in advance...!

 

 

 

 

 

 

 

 

Moderator

Re: What is the purpose of routePolicy in ESB ?

Hello,

We have redirected your issue to our ESB experts and will keep you posted.

Thanks for your time.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Employee

Re: What is the purpose of routePolicy in ESB ?

Please review http://camel.apache.org/routepolicy.html

 

Thomas

Thomas Steinborn
VP Product Management

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download