Menu Search

14.12. Configuring Transaction Timeouts

The JMS transaction timeouts are configured on each virtual host defined in the XML configuration files.

The default values for each of the parameters is 0, indicating that the particular check is disabled.

Any or all of the parameters can be set, using the desired value in milliseconds, and will be checked each time the housekeeping process runs, usually set to run every 30 seconds in standard configuration. The meaning of each property is as follows:

  • openWarn - the time a transaction can be open for (with activity occurring on it) after which a warning alert will be issued.

  • openClose - the time a transaction can be open for before the connection it is on is closed.

  • idleWarn - the time a transaction can be idle for (with no activity occurring on it) after which a warning alert will be issued.

  • idleClose - the time a transaction can be idle for before the connection it is on is closed.

The virtualhosts configuration is shown below, and must occur inside the //virtualhosts/virtualhost/name/ elements:

Example 14.16. Configuring producer transaction timeout

<transactionTimeout>
    <openWarn>10000</openWarn>
    <openClose>20000</openClose>
    <idleWarn>5000</idleWarn>
    <idleClose>15000</idleClose>
</transactionTimeout>