How to set Receivetimeout in for cxf in mediation route

Highlighted
Six Stars

How to set Receivetimeout in for cxf in mediation route

Hi,

 

1. I've a mediation route which uses cCXF component to call a webservice.

I want to increase the Receivetimeout as the default value is 60000 ms.

Do I have to edit the org.apache.cxf.http.conduits-common.cfg file?

 

2. Very soon this will be migrated to enterprise edition 7.1.1 where there will be multiple routes, services running from same container. So is there a way to make sure that the timeout setting only effect on required route ?

i.e. setting Receivetimeout on route level and not on container level?

 

Thanks in advance!

Highlighted
Employee

Re: How to set Receivetimeout in for cxf in mediation route

Hi, Hemant_Pekhale,

 

Yes, you can create one or multiple cfg files, e.g org.apache.cxf.http.conduits-abc.cfg (the org.apache.cxf.http.conduits-common.cfg is the default one for https configuration, you can add ReceiveTimeout into it or create another cfg)

 

For example:

order = 2
url = http://localhost:8040/services/MyRoute.*
client.ConnectionTimeout=120000
client.ReceiveTimeout=120000

 

You can use "url" property to filter out which services should be applied.

 

BR.

Xilai

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read