This image shows the request/response interaction. Program A is enqueues a request message to a record queue and Program B dequeues the messages from the record queue.
Next, Program B enqueues the response message to a replyto queue and Program A dequeues the processed message from the replyto queue.