Posted: Wed Mar 12, 2008 7:05 am Post subject: reply queues and dynamic queues
Newbie
Joined: 04 Mar 2008 Posts: 5
Hello
I'm not sure whether I understand dynamic and reply queues correctly.
Please tell me whether the following example is reasonable.
Assume that I have two client programs and a single queue manager.
Each of them resides on its own IP address.
I create two queues on a queue manager. One of them is a local queue MY.LQ
and the other is a model queue MY.MQ.
Client program 1 opens a local queue MY.LQ and creates a dynamic queue by opening
a model queue MQ.MQ
Then it puts a string message on a local queue MY.LQ.
It also specifies a dynamic queue to be reply queue for a message.
Client program 2 working on other IP address opens a local queue MY.LQ.
It reads a single message and processes it. It finds that message's reply-to-queue field
specifies to put a result on a dynamic queue. It then opens and puts its reply on a dynamic queue.
Client program 1 now may find the reply from client 2 in a dynamic queue.
Is it correct ?
The reply queue is an ordinary queue for the queue manager.
Only the applications treat it in a special way.
They exchange its name in a reply-to-field of a message descriptor.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum