Home

 

Defining a model queue

 

+

Search Tips   |   Advanced Search

 

You define a model queue with a set of attributes in the same way that you define a local queue. Model queues and local queues have the same set of attributes, except that on model queues we can specify whether the dynamic queues created are temporary or permanent.

Permanent queues are maintained across queue manager restarts, temporary ones are not.

For example:

DEFINE QMODEL (GREEN.MODEL.QUEUE) +
       DESCR('Queue for messages from application X') +
       PUT (DISABLED) +
       GET (ENABLED) +
       NOTRIGGER +
       MSGDLVSQ (FIFO) +
       MAXDEPTH (1000) +
       MAXMSGL (2000) +
       USAGE (NORMAL) +
       DEFTYPE (PERMDYN)

This command creates a model queue definition. From the DEFTYPE attribute, we can see that the actual queues created from this template are permanent dynamic queues. Any attributes not specified are automatically copied from the SYSYTEM.DEFAULT.MODEL.QUEUE default queue.

We can use the LIKE and REPLACE attributes when you define model queues, in the same way that you use them with local queues.

 

Parent topic:

Working with model queues


fa11370_


 

Home