To optimize performance, configure the queue destination properties
to best fit your message-driven beans or other applications that use the queue
destinations.
For example:
- When MDB applications are configured to WebSphere MQ queues on z/OS, the
INDEX by MSGID is very important.
- 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 use by your message-driven beans or other applications that
use the queue.
You should also consider queue attributes of the internal JMS server that
are associated with the queue name. Inappropriate queue attributes can reduce
the performance of WebSphere operations.
You should also consider the queue attributes associated with the queue
name you created with WebSphere MQ. Inappropriate queue attributes can reduce
the performance of WebSphere operations. You can use WebSphere MQ commands
to change queue attributes for the queue name.
- BOQNAME
- The excessive backout requeue name. This can be set to a local queue name
that can hold the messages which were rolled back by the WebSphere applications.
This queue name can be a system dead letter queue.
- BOTHRESH
- The backout threshold and can be set to a number once the threshold is
reached, the message will be moved to the queue name specified in BOQNAME.
- INDXTYPE
- Set this to MSGID. This causes an index of message identifiers to be maintained,
which can improve WebSphere MQ retrieval of messages.
- DEFSOPT
- Set this to SHARED (for shared input from the queue).
- SHARE
- This must be specified (so that multiple applications can get messages
from this queue).
For more information about using these properties, see:
- For BOQNAME and BOTHRESH, see "Handling poison messages" in the WebSphere
MQ Using Java book
- The WebSphere MQ Script (MQSC) Command Reference book