Improving the performance of nonpersistent messages in WebSphere MQ classes for Java

To improve performance when browsing messages or consuming nonpersistent messages from a client application, you can use read ahead. Client applications using MQGET or asynchronous consumption will benefit from the performance improvements when browsing messages or consuming nonpersistent messages.

For general information about the read ahead facility, see the related topic.

In WebSphere® MQ classes for Java, you use the CMQC.MQSO_READ_AHEAD and CMQC.MQSO_NO_READ_AHEAD properties of an MQQueue or MQTopic object to determine whether message consumers and queue browsers are allowed to use read ahead on that object.