Consumer Specific Runtime Configuration - 7.3

Talend ESB Service Developer Guide

Version
7.3
Language
English
Product
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Module
Talend ESB
Talend Runtime
Content
Design and Development
Installation and Upgrade
Last publication date
2023-04-17

The JMS consumer configuration allows you to specify two runtime behaviors:

  • the number of milliseconds the consumer will wait for a response.

  • the number of milliseconds a request will exist before the JMS broker can remove it.

You use the jms:clientConfig element to set JMS consumer runtime behavior. This element's attributes, listed in the following table, specify the configuration values for consumer runtime behavior.

Attribute

Description

clientReceiveTimeout

Specifies the amount of time, in milliseconds, that the endpoint will wait for a response before it times out and issues an exception. The default value is 2000.

messageTimeToLive

Specifies the amount of time, in milliseconds, that a request can remain unrecieved before the JMS broker can delete it. The default value is 0 which specifies that the message can never be deleted.

The following example shows a configuration fragment that sets the consumer endpoint's request lifetime to 500 milliseconds and its timeout value to 500 milliseconds.

JMS Consumer Endpoint Runtime Configuration

<jms:conduit 
name="{http://cxf.apache.org/jms_endpt}HelloJMSPort.jms-conduit">
   ...
   <jms:clientConfig clientReceiveTimeout="500"
      messageTimeToLive="500" />
</jms:conduit>