The administration reply-to queue

This topic describes the use of administration reply-to queues in Java and C.

Java™

In Java, a typical administration application instantiates a subclass of MQeAdminMsg, configures it with the required administration request, and passes it to the AdminQ on the target queue manager. If the application needs to know the outcome of the action, a reply can be requested. When the request has been processed, the result of the request is returned in a message to the reply-to queue and queue manager specified in the request message.

The reply can be sent to any queue manager or queue but you can configure a default reply-to queue that is used solely for administration reply messages. This default queue is created using the defineDefaultAdminReplyQueue() method of the MQeQueueManagerConfigure class. The name of the queue is AdminReplyQ, and applications can refer to it using the constant MQe.Admin_Reply_Queue_Name.

C

In the native code base, as in the Java code base, any queue can be specified as the admin reply-to queue. However, it is recommended that the default admin reply-to queue name, MQE_ADMIN_REPLY_QUEUE_NAME, is used to name a queue dedicated to the role of admin reply-to queue. This name corresponds to MQe.Admin_Reply_Queue_Name in the Java code base.

In practice, the native client is more likely to be receiving than to be sending admin messages. In this case, the client needs a remote asynchronous queue definition of the admin reply-to queue on the server, as well as a home server queue matching a store-and-forward queue on the server, to enable the admin and admin reply messages to be transferred.


Terms of use | WebSphere software

(c) Copyright IBM Corporation 2004, 2005. All rights reserved.