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

To improve performance when browsing messages or consuming nonpersistent messages from a client application, we 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 IBM MQ classes for Java™, we 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.