First of all create the MQeQueueAdminMsg object. This needs to be primed to set up the origin queue manager administration reply.
/* Create an empty queue admin message and parameters field */ MQeQueueAdminMsg msg = new MQeQueueAdminMsg(); MQeFields parms = new MQeFields(); /** Prime message with who to reply to and a unique identifier */ /* Set name of queue to manage */ msg.setName( qMgrName, queueName ); /* Add any characteristics of queue here, otherwise */ /* characteristics will be left to default values. */ parms.putUnicode( MQeQueueAdminMsg.Queue_Description, description); parms.putInt32(MQeQueueAdminMsg.Queue_MaxQSize,200); parms.putInt32(MQeQueueAdminMsg. Queue_Expiry, 20000);_ /* Set the admin action to create a new queue */ msg.create( parms );
Once the Admin message has been created, it must be sent to the local admin queue.