Getting messages from a queue
Use this information to learn about getting messages from a queue.
You can get messages from a queue in two ways:
- You can remove a message from the queue so that other programs can no longer see it.
- You can copy a message, leaving the original message on the queue. This is known as browsing. You can remove the message once you have browsed it.
When you have opened the queue, you can use the MQGET call repeatedly to browse or remove messages on the same queue. Call MQCLOSE when you have finished getting all the messages that you want from the queue.
Use the following links to find out more about getting messages from a queue:
- Getting messages from a queue using the MQGET call
- The order in which messages are retrieved from a queue
- Getting a particular message
- Improving performance of non-persistent messages
- Type of index
- Handling messages greater than 4 MB
- Waiting for messages
- Signaling
- Skipping backout
- Application data conversion
- Browsing messages on a queue
- Some cases where the MQGET call fails