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 » General IBM MQ Support » creating and using dynamic q's

Post new topic  Reply to topic
 creating and using dynamic q's « View previous topic :: View next topic » 
Author Message
shan.mq
PostPosted: Fri Aug 19, 2005 10:19 pm    Post subject: creating and using dynamic q's Reply with quote

Newbie

Joined: 08 Aug 2005
Posts: 6
Location: Bangalore,India.

hi
i want to create and use a temporary dynamic q.i reffered the manuals but the information for the above specifications r not sufficient.so can any one help me out with the steps

thanks in advance

shan[/i]
_________________
Warm Regards,
Shanmuga Sundaram N.
Back to top
View user's profile Send private message Yahoo Messenger
Mr Butcher
PostPosted: Fri Aug 19, 2005 11:20 pm    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

the information is sufficient. maybe you should take some more minutes reading the manuals and do some work on your own.

anyway

you should decide whether to use dynamic queues or not (its overhead)
you should decide whether to use temporary or permanent dynamic queues
you need to create a queue model
you have to think about the name of your created dynamic queues
specify model and the name of the queue to be crated in the object descriptor on open
dont forget to clean up when the program ends

persistent messages can not be put into temporary dynamic queues.
_________________
Regards, Butcher
Back to top
View user's profile Send private message
hopsala
PostPosted: Sat Aug 20, 2005 4:57 am    Post subject: Reply with quote

Guardian

Joined: 24 Sep 2004
Posts: 960

I would like to emphesize what butcher said, dynamic queues is rarerly the correct solution, they are highly problematic to administrate.
What is the exact buisness scaenario?

Concerning all the technical whatchamazoo - read the manuals. More to-the-point questions, which are not clearly stated in the lit, we will gladly answer.
Back to top
View user's profile Send private message
JT
PostPosted: Sat Aug 20, 2005 2:06 pm    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

Quote:
Creating dynamic queues
Dynamic queues are supported on MQSeries for AS/400, MQSeries for OS/2 Warp, MQSeries for OS/390, MQSeries for Tandem NonStop Kernel, MQSeries on UNIX systems, and MQSeries for Windows NT only.

You should use a dynamic queue for those cases where you do not need the queue after your application ends. For example, you may want to use a dynamic queue for your "reply-to" queue. You specify the name of the reply-to queue in the ReplyToQ field of the MQMD structure when you put a message on a queue (see Defining messages using the MQMD structure).

To create a dynamic queue, you use a template known as a model queue, together with the MQOPEN call. You create a model queue using the MQSeries commands or the operations and control panels. The dynamic queue you create takes the attributes of the model queue.

When you call MQOPEN, specify the name of the model queue in the ObjectName field of the MQOD structure. When the call completes, the ObjectName field is set to the name of the dynamic queue that is created. Also, the ObjectQMgrName field is set to the name of the local queue manager.


There are three ways to specify the name of the dynamic queue you create:
  • Give the full name you want in the DynamicQName field of the MQOD structure.
  • Specify a prefix (fewer than 33 characters) for the name, and allow the queue manager to generate the rest of the name. This means that the queue manager generates a unique name, but you still have some control (for example, you may want each user to use a certain prefix, or you may want to give a special security classification to queues with a certain prefix in their name). To use this method, specify an asterisk (*) for the last non-blank character of the DynamicQName field. Do not specify a single asterisk (*) for the dynamic queue name.
  • Allow the queue manager to generate the full name. To use this method, specify an asterisk (*) in the first character position of the DynamicQName field.
For more information about these methods, see the description of the DynamicQName field in the MQSeries Application Programming Reference manual.


Model queues
A model queue is a template of a queue definition, that you use when creating a dynamic queue. You specify the name of a model queue in the object descriptor (MQOD) of your MQOPEN call. Using the attributes of the model queue, the queue manager dynamically creates a local queue for you.

You can specify a name (in full) for the dynamic queue, or the stem of a name (for example, ABC) and let the queue manager add a unique part to this, or you can let the queue manager assign a complete unique name for you. If the queue manager assigns the name, it puts it in the MQOD structure.

You can not issue an MQPUT1 call directly to a model queue, however, once a model queue has been opened, you can issue an MQPUT1 to the dynamic queue.

The attributes of a model queue are a subset of those of a local queue. For a fuller description, see the MQSeries Application Programming Reference manual.

How much more do you need ? Seems pretty straight-forward to me.
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Sat Aug 20, 2005 7:24 pm    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Quote:
they are highly problematic to administrate.


How so? In fact I would say just the opposite, using temporary dynamic queues (where applicable) really reduces administration at our site. I don't have to worry about setting up queues for people to use, especially as reply queues. I just give them access to the appropriate model queue and make sure they use a suitable name for the TDQ.

What problems are you experiencing administring them? Am I missing something?
Back to top
View user's profile Send private message
hopsala
PostPosted: Sun Aug 21, 2005 1:01 am    Post subject: Reply with quote

Guardian

Joined: 24 Sep 2004
Posts: 960

kevin - I have much to say of this, and chose to do so in another topic (while we're at it) - http://www.mqseries.net/phpBB2/viewtopic.php?p=104910#104910
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 » General IBM MQ Support » creating and using dynamic q's
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.