KB Article #176994

Setting MQ Message expiry value

Problem

How to set an MQ Message Expiration value so the message is deleted from the MQ queue when the expiration value is reached.

Resolution

To set the expiry timeout on JMS send method you can use the attribute TimeToLive. (the value is set in milliseconds in Integrator)

Below is the example to use it in the DML map:

setAttribute("JMSSendMethodOverride","Use_TimeToLive",1);
setAttribute("JMSSendMethodOverride","TimeToLive","value");


You can also set this parameter on the JMS send channel if you want to use a fix value.