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 put sample to succeed; the server sample program connects to the queue manager and uses the XA interface. To run the sample enter:

For example:

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.

 

Parent topic:

TUXEDO samples


fg17890_