In this example the constructor is used to set the queue name and the queue manager name. This is an alternative to using the setName() method on the admin message.
As with all queues deletion requires that the queue be empty of messages. Note that there is no parameter structure here - just the queue name and queue manager name.
/* Create an empty store-and-forward */ /* queue admin message */ /* all on one line*/ MQeStoreAndForwardQueueAdminMsg msg = new MQeStoreAndForwardQueueAdminMsg (qMgrName, queueName); /* Prime message with who to reply */ /* to and a unique identifier */ primeAdminMsg( msg ); /* Set the admin action to delete a queue */ msg.delete(new MQeFields() );