ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » Dynamic Queue

Post new topic  Reply to topic
 Dynamic Queue « View previous topic :: View next topic » 
Author Message
ajayvizag
PostPosted: Fri Apr 17, 2009 7:02 am    Post subject: Dynamic Queue Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Fri Apr 17, 2009 7:38 am    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Sun Apr 19, 2009 7:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
gbaddeley
PostPosted: Mon Apr 20, 2009 5:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Dynamic Queue
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.