To optimize performance, configure the JMS queue destination properties to best fit your WebSphere® Application Server Version 5 applications.
For example, setting the Expiry property to SPECIFIED and the Specified Expiry property to 30000 milliseconds for the expiry timeout, reduces the number of messages that can be queued.
To ensure that there are enough underlying WebSphere MQ resources available for the queue, you must ensure that you configure the queue destination properties adequately for your application usage.
For more information about using these properties, see the Handling poison messages in WebSphere MQ classes for JMS and Script (MQSC) sections in the WebSphere MQ information center.