> For the complete documentation index, see [llms.txt](https://docs.pentaho.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pentaho.com/pdia-data-integration/10.2-data-integration/pdi-transformation-steps-reference-overview/amqp-consumer/options-amqp-consumer/use-an-existing-amqp-message-queue.md).

# Use an existing AMQP Message Queue

To use an AMQP message queue that already exists on the broker, define the options in the **Setup** tab as follows:

| Option            | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Connection**    | Specify the URI address of the AMQP broker to which this step connects to ingest messages into PDI. For more information see: <https://www.rabbitmq.com/uri-spec.html>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| **Queue name**    | <p>Specify the name of an existing AMQP message queue name from which this step will ingest messages. The specified queue must conform to these parameters:- Durable</p><ul><li>Non auto-delete</li><li>Non-exclusive</li></ul><p><strong>Note:</strong> If you specify the name of a queue which does not already exist, this step will create a new queue. The new queue will conform to the same parameters. See <a href="/pages/yO18G51DKXCJcARNZz0R">Create a new AMQP Message Queue</a>.</p>                                                                                                                                                                                                                                                                                                                                                |
| **Exchange name** | <p>Specify an existing exchange name from which to bind the queue.</p><p>Leave the <strong>Exchange name</strong> blank to use the <strong>DEFAULT</strong> as the <strong>Exchange type</strong> (below) and set the <strong>Exchange type</strong> to <strong>DIRECT</strong>. The <a href="https://github.com/pentaho/documentation/blob/main/PDIA/10.2/PDI/Transformation%20steps/PDI%20transformation%20steps%20reference%20(overview)/AMQP%20Producer=GUID-63D8BDBD-C2F9-45DC-9339-B657B2E34C57=2=en=.md">AMQP Producer</a> step requires a matching blank entry in its <a href="/pages/ObsbMMcqTFjTSm3PHMJM">Setup tab</a> for the Exchange name.</p>                                                                                                                                                                                      |
| **Exchange type** | <p>Specify the type pattern this exchange is using:</p><p><strong>DIRECT</strong> routes messages to queues based on the message routing key.</p><ul><li><strong>DEFAULT</strong>To use the <strong>DEFAULT</strong> exchange type, do not specify an <strong>Exchange name</strong> (above) and set the <strong>Exchange type</strong> to <strong>DIRECT</strong>.</li></ul><p><strong>FANOUT</strong> routes messages to all the queues that are bound to the fanout exchange and the routing key is ignored.</p><p><strong>TOPIC</strong> routes messages to one or many queues based on a match between a message routing key and the pattern used to bind a queue to an exchange.</p><p><strong>HEADERS</strong> routes messages using one or more key/value pairs that are more easily expressed as message headers than a routing key.</p> |
| **Routing Keys**  | Use the **Routing Keys** table to specify the routing keys that define the bindings between the exchange and the queue. See [Specify Routing Keys](/pdia-data-integration/10.2-data-integration/pdi-transformation-steps-reference-overview/amqp-consumer/options-amqp-consumer/use-an-existing-amqp-message-queue/specify-routing-keys.md) for more information.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| **Headers**       | Use the **Headers** table to specify the *Name* and *Value* associated with the appropriate headers. See [Specify Headers](/pdia-data-integration/10.2-data-integration/pdi-transformation-steps-reference-overview/amqp-consumer/options-amqp-consumer/use-an-existing-amqp-message-queue/specify-headers.md) for more information.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.pentaho.com/pdia-data-integration/10.2-data-integration/pdi-transformation-steps-reference-overview/amqp-consumer/options-amqp-consumer/use-an-existing-amqp-message-queue.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
