Get sample for TUXEDO

This sample allows you to get messages from a queue in batches.

The sample server program amqstxsx must be running for the Get sample to succeed; the sample server program connects to the queue manager and uses the XA interface. To run the sample, enter the following command:
  • dogets -n queuename -b batchsize -c trancount
For example:
  • dogets -n myqueue -b 6 -c 4

This takes 24 messages off the queue named myqueue, in six batches, each with four messages in it. If you run this after the put example, which puts 30 messages on myqueue, you have only six messages on myqueue. The number of batches and the batch size can vary between putting the messages and getting them.

Any error messages are written to the TUXEDO log file and to stderr. Any reason codes are written to stderr.