Wednesday 5 September 2012

Types Of Queues


Types Of Queues:
1. Predefined Queues
2. Dynamic Queues

Predefined Queues 
1. Local Queue
The queue definition object, created when you define a local queue, holds the definition information of the queue as well as the physical messages put on the queue.
2. Alias Queue
An alias queue is a WebSphere MQ object that you can use to access another queue. The queue resulting from the resolution of an alias name (known as the base queue) can be a local queue, the local definition of a remote queue, or a shared queue (a type of local queue only available on WebSphere MQ for z/OS).
Note: An alias cannot resolve to another alias
3. Remote Queue
To a program, a queue is remote if it is owned by a different queue manager to the one to which the program is connected. Where a communication link has been established, a program can send a message to a remote queue. A program can never get a message from a remote queue.
4. Model Queue
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.

Dynamic Queues:
In MQSeries to create dynamic queues must define model queue. It works as a template.

1. Temporary Dynamic Queue
  • They hold non-persistent messages only
  • They are non-recoverable
  • They are deleted when Queue manager restarted
  • These will created when application issue MQOPEN call on model queue and deleted for application MQCLOSE
2. Permanent Dynamic Queue
  • They hold persistent and non-persistent messages
  • They are recoverable in the event of system failure
  • They are deleted when an application successfully closes the queue using the MQCO_DELETE or MQCO_DELETE_PURGE
  • How To Define Model Queue To Create Temporary Dynamic Queue
                 DEFINE QMODEL(Model_Queue_Name) DEFTYPE(TEMPDYN)
  • How To Define Model Queue To Create Permanent Dynamic Queue
                  DEFINE QMODEL(Model_Queue_name) DEFTYPE(PERMDYN)

No comments:

Post a Comment

Note: only a member of this blog may post a comment.

Best Regards,
MADHU K
IBM MQ Certified Professional
HYDERABAD
+917893751171/+919964371404
mailme.mq@gmail.com
trainingontech.com
http://www.ibmmqadmin-madhu.blogspot.in