Consumer Specific Runtime Configuration
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>