---
title: "Subscribed Queue for DataSync Agent"
canonical: "https://docs.perspectium.com/space/helium/2114691/Subscribed%20Queue%20for%20DataSync%20Agent"
format: markdown
---
# The DataSync Agent by default will Subscribe to a queue based off the name it as provisioned. If it was given the name, **acme**, it will attempt to read the queue **psp.out.replicator.acme**.

As you are performing the initial set up and/or adding additional queues to the Agent you will likely want to specify the queue that this Agent will attempt to read from. This queue name should match what you are sharing to.

This is done by adding in the **queue=“…”** attribute into the <message_connection> of the agent.xml.

Example of the **agent.xml** below:

```xml
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<config>
    <agent>
        <subscribe>
            <task>
                <task_name>example_subscribe</task_name>
                <message_connection queue="psp.out.replicator.example" password="encrypt:XXXX" user="XXXX" >amqp://example.perspectium.net</message_connection>
                .
                .
                .
                .  
            </task>
        </subscribe>
    </agent>
</config>
```