MQeQueueManagerConfigure allows you to define the
following four standard queues for the queue manager:
- defineDefaultAdminQueue()mqeQueueManagerConfigure_
- This administration queue is needed to allow the queue manager to respond
to administration messages, for example to create new connection definitions
and queues.
- defineDefaultAdminReplyQueue()mqeQueueManagerConfigure_
- This administration reply queue is a local queue, used by connections
as the destination of reply messages generated by administration.
- defineDefaultDeadLetterQueue()mqeQueueManagerConfigure_
- This dead letter queue can be used, depending
on the rules in force, to store messages that cannot be delivered to
their correct destination.
- defineDefaultSystemQueue()mqeQueueManagerConfigure_
- This default local queue, SYSTEM.DEFAULT.LOCAL.QUEUE, has no
special significance within MQe itself, but it is useful when MQe is used
with MQ messaging because it exists on every MQ messaging queue manager.
All methods throw an exceptionreturn
an error if the queue already exists.
import com.ibm.mqe.*;
import com.ibm.mqe.registry.*;
import examples.queuemanager.MQeQueueManagerUtils;
try
{
MQeQueueManagerConfigure qmConfig;
MQeFields parms = new MQeFields();
// initialize the parameters
…
qmConfig = new MQeQueueManagerConfigure( parms, "MsgLog:qmName\\Queues\\" );
qmConfig.setDescription("a test queue manager");
qmconfig.defineDefaultAdminQueue();
qmconfig.defineDefaultAdminReplyQueue();
qmconfig.defineDefaultDeadLetterQueue();
qmconfig.defineDefaultSystemQueue();
}
catch (Exception e)
{ … }