Configuring the publication task

You can fill one or more headers to RabbitMQ messages by setting values in the Header tabs. To publish a simple message and wait for a response to be received, only a few of options under the Producer Settings and Consumer Settings tabs need to be set. You can also add properties to the messages sent.

Procedure

  1. Configure the Producer Settings section in the Send Request window.
    image of the producer settings seciton in the send request dialog box.
    1. Enter the exchange name to be used for the publication in the Exchange Name field. This exchange corresponds to the exchange to which queues are supposed to be bound using the following routing key.
    2. Select Exchange Type from the list. Select from the following options:
      • Direct
      • Fanout
      • Topic
      • Header
    3. Enter the routing key value to be used in the Routing Key field. When the default direct exchange type is selected, this routing key by convention, would correspond to a queue name.
    4. Select any of the following options:
      Option Description

      Declare

      This option enables this Exchange to be created dynamically or use the one that already exists.

      Passive Declaration

      This option enables the API to check if this Exchange object already exists and display an error if the object does not exist.

      Durable

      This option specifies the Exchange to be a durable Exchange as defined by the RabbitMQ specification.

      Auto Delete

      This option specifies the Exchange to be an auto-deleted Exchange as defined by the RabbitMQ specification.

    5. Select from the following publishing options in the Publish Flags section:
      Option Description

      Mandatory

      This option enables the broker to double-check that the message is routed to queues. When the mandatory field is not selected, the broker silently drops the message if it cannot be routed.

      Immediate

      This option enables the broker to immediately deliver the message to the Consumer which can receive the message.

    6. Add a header to a message by clicking the Headers tab and entering appropriate values in the fields.
    7. Add a property to the message by clicking the Properties tab and entering appropriate values in the fields.
  2. Configure the Consumer Settings section in the Send Request window:
    image of the producer settings seciton in the send request dialog box.
    1. Enter the queue name to be used for the publication in the Queue Name field.
    2. Enter the exchange name to be used for the publication in the Exchange Name field.
    3. Enter the routing key value to be used in the Routing Key field.
    4. Select any of the following options:
      Option Description

      Declare

      This option enables this Queue to be created dynamically or use the one that already exists.

      Passive Declaration

      This option enables the API to check if this Queue object already exists and display an error if the object does not exist.

      Durable

      This option specifies the Queue to be a durable Exchange as defined by the RabbitMQ specification.

      Auto Delete

      This option specifies the Queue to be an auto-deleted Exchange as defined by the RabbitMQ specification.

      Exclusive

      This option specifies the Queue to be an exclusive Exchange as defined by the RabbitMQ specification.

    5. Enter the ID for the message in the Message ID field in the Reply Correlation Settings section.
    6. Enter the correlation ID in the Correlation ID field in the Reply Correlation Settings section.
    7. Select from the following options in the Reply Settings section:
      Option Description

      Request Temporary Queue

      This option enables the broker to create a temporary queue for the messages received.

      Create Consumer Before Call

      This option enables the broker to create a consumer before the producer can start sending the messages.

Feedback