Show Table of Contents
10.4.4. Create and Delete Queue Routes
- To create and delete queue routes, use the following syntax:
qpid-route [OPTIONS] queue add <dest-broker> <src-broker> <dest-exchange> <src-queue> qpid-route [OPTIONS] queue del <dest-broker> <src-broker> <dest-exchange> <src-queue>
- For example, use the following command to create a queue route that routes all messages from the queue named
publicon the source brokerlocalhost:10002to theamq.fanoutexchange on the destination brokerlocalhost:10001:$ qpid-route queue add localhost:10001 localhost:10002 amq.fanout public
- Optionally, specify the
-doption to persist the queue route. The queue route will be restored if one or both of the brokers is restarted:$ qpid-route -d queue add localhost:10001 localhost:10002 amq.fanout public
- The
delcommand takes the same arguments as theaddcommand. Use the following command to delete the queue route described above:$ qpid-route queue del localhost:10001 localhost:10002 amq.fanout public

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.