Share this:

Introduction

In this article we’ll look at how to control the client ID the application presents to the queue manager.

Setting a specific client ID

By default the Amqp.Net Lite client library generates a UID container ID to use in the AMQP open frame. MQ interprets the container ID as a client ID which can be used to identify and, if required, authorise specific applications to different MQ topics.

Here’s the output of runmqsc when viewing the AMQP channel status for a basic Amqp.Net Lite connection:

You can now more easily identify which connections you have coming into the queue manager and if you choose to adopt the client ID as the connection’s security context, authorise individual clients to specific MQ topics.

In the next post we will look at how multiple receivers can consume messages from a shared subscription.