|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Dynamic Queue |
« View previous topic :: View next topic » |
Author |
Message
|
ajayvizag |
Posted: Fri Apr 17, 2009 7:02 am Post subject: Dynamic Queue |
|
|
Apprentice
Joined: 20 Feb 2009 Posts: 31
|
Hi All,
Can Anyone please tell me where exactly we use dynamic queues. And also can we specify a name to a dynamic queue. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Fri Apr 17, 2009 7:38 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
This is basic information in the MQ Documentation. Open up the MQ Info Cnter and do a search on Dynamic Queues. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
bruce2359 |
Posted: Sun Apr 19, 2009 7:00 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Briefly (or maybe not):
Queues come in two broad categories: queues that system admins explicitly define (like DEFINE QLOCAL(FRED); and queues that are created during program execution by application programmers. The queues that programmers create during program execution are dynamic queues.
Dynamic queues are usually used in the request-reply programming mode. Program A creates a request message and sends it to program B, and A expects (and usually waits for) a reply message back from program B.
In a bit more detail: before program A puts the request message, it creates a reply-to-queue (based on a queue model definition that sysadmins create), and places the name of the reply-to-queue in the MQMD of the request message. Program B gets the message, does the back-end work (like inquiring on a db); and composes a reply message that it puts on the reply-to-queue that program A created.
A bit more detail: Sysadmins create the model definition with DEFINE QMODEL(model-name), with the attributes that the dynamic queue will have. This qmodel name is the name that the programmer specifies in the MQOD as the ObjectName. The naming rule for the resulting dynamic queue is placed in the DyanmicQueueName field of the MQOD. If the MQOPEN of the QModel is successful, the qmgr places the resolved queue name in the ObjectName field.
For more, take a look at the WMQ Application Programming Guide and WMQ Application Programming Reference. _________________ 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 |
|
 |
gbaddeley |
Posted: Mon Apr 20, 2009 5:24 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
Its also important to understand the differences and limitations of the two types of dynamic queue, Temporary and Permanent. Using the wrong type can have serious consequences. _________________ Glenn |
|
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
|
|
|
|