This specific example may indeed confuse, since we have the queue "producer" and "consumer" on one host. Let me explain it:

The second declaration creates the queue normally and makes it visible in the jboss/exported JNDI context for remote lookup.

First declaration *does not* create any queue, it just creates the metadata for the queue. This will be used later to get the information where the queue is located, so we can connect message processors.

Proper example:

On host A (IP: 192.168.1.1):

```yaml
/queue/remote:
  exported: true
```

On host B (consumer the queue of )

```yaml
/queue/remote:
  remote:
    host: "192.168.1.1:4447"
```

Hope this makes it clear.