This topic describes how to create a binding whose destination is a specific queue in the Message Queue for RabbitMQ console to allow messages to be routed from an exchange to a queue.

Prerequisites

Before you create a binding, make sure that the following operations are complete:

Procedure

  1. Log on to the Message Queue for RabbitMQ console.
  2. In the top navigation bar, select the region where your instance resides.
  3. In the left-side navigation pane, click Queues.
  4. On the Queues page, select an instance and a vhost, find the required queue, and click Bind in the Actions column.
  5. In the Binding of Queue XXX dialog box, click Add Binding. Specify Source Exchange and Binding key, and click Confirm. XXX indicates the queue name.
    pg_queue_bound
    Note
    • A binding key cannot contain Chinese characters.
    • A binding key of common type must be 1 to 255 characters in length, and can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@).
    • A binding key of topic type must be 1 to 255 characters in length, and can contain only letters, digits, hyphens (-), underscores (_), asterisks (*), periods (.), number signs (#), and at signs (@). If a binding key contains a number sign (#), the binding key must start with a number sign (#) followed by a period (.) or end with a number sign (#) that follows a period (.).

Result

You can view the bound source exchange in the Binding of Queue XXX dialog box.bg_queue_bound_result