|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
how to create a reply queue/model-dynamic Q's |
« View previous topic :: View next topic » |
Author |
Message
|
mq_starter |
Posted: Wed Feb 27, 2008 12:50 pm Post subject: how to create a reply queue/model-dynamic Q's |
|
|
Novice
Joined: 27 Feb 2008 Posts: 10
|
hello all,
i am a new MQ user, i am trying to get my hands dirty with MQ. i was playing with MQ v6.0 from windows paltform and i am albe to create local, remote, alias queues. but i have problem in understanding the creation of reply queues.
can some help me in understanding how i can create this queue and can give some light which scenarioes this queue will be used(if possible please give some practical scenarios).
it will be really helpfull if given step by step procedure on how i can create one from windows MQ Explorer.
the other queue i have problem is with
model/dynamic queue.
this might be basic question, but its a huge thing for me.
thanks
mq_starter. |
|
Back to top |
|
 |
bower5932 |
Posted: Wed Feb 27, 2008 1:32 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
Take a look at the amqsreq0.c sample. This program acts as a requester to a server and uses a model queue to dynamically build the reply queue that the server will use to send back the reply. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Feb 28, 2008 12:48 am Post subject: Re: how to create a reply queue/model-dynamic Q's |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mq_starter wrote: |
it will be really helpfull if given step by step procedure on how i can create one from windows MQ Explorer. |
If you're defining a queue to accept replies, it's just a local queue.
mq_starter wrote: |
the other queue i have problem is with
model/dynamic queue.
|
Model queues are created like any other, if that's how you're accepting replies.
mq_starter wrote: |
this might be basic question, but its a huge thing for me.
|
You need to look at the suggested code sample & read the documentation (Intercommunication manual is a good place to start). Request / reply can be implemented in 2 ways: replies go to a local queue and are retrieved by correlation id, or a dynamic queue that serves a single application.
The one you use is entirely dependant on your needs and circumstances; there's no "right" way.
Though you will find many posts in here discussing the point. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mq_starter |
Posted: Mon Mar 03, 2008 5:25 am Post subject: |
|
|
Novice
Joined: 27 Feb 2008 Posts: 10
|
hello, thanks for your replies.
i did go through the code that is mentioned.
please correct me if i my understanding is wrong.
it lloks like the reply Q is local queue, but at the same time it is remote queue for some other Qmanager whose application puts the meesage in it.
right...? |
|
Back to top |
|
 |
Vitor |
Posted: Mon Mar 03, 2008 5:56 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mq_starter wrote: |
it lloks like the reply Q is local queue, but at the same time it is remote queue for some other Qmanager whose application puts the meesage in it. |
Yes, though there may not be an actual remote queue on the other queue manager, depending on your design.
If you think about it, all local queues are remote queues to other queue managers, conceptually speaking. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mq_starter |
Posted: Mon Mar 03, 2008 9:07 am Post subject: |
|
|
Novice
Joined: 27 Feb 2008 Posts: 10
|
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Mar 11, 2008 8:54 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9472 Location: US: west coast, almost. Otherwise, enroute.
|
Bridfly:
A QModel is a template definition that sysadmins create so that application programmers can create a queue dynamically. The programmer opens the QModel name, and specifies the rule for how the resulting local queue is to be named. If the open is successful, a local queue is created with the attributes from the QModel definition, and the name of the dynamic queue is returned to the programmer. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|