No. Having a "/" in the exchange name is not allowed by the AMQP 0-x
specification that defined exchanges, it requires they must be formed
of basic A-Z or a-z letters, digits, dash, underscore, colon, or dots.

I believe the "/" was also reserved by the broker itself long long ago
to allow for things such as an "<exchange-name>/<routing-key>" form
AMQP 1.0 address to help map AMQP 1.0 client usage onto existing AMQP
0-x usage/behaviours, which again necessarily precludes a "/" being
part of the exchange name. (Aside: the AMQP 0-x topic exchange routing
key is similarly not allowed to have a "/" in it, being formed of
basic A-Z or a-z letters and digit words each separated by deliminator
dots).

I think the "/" was also being used towards some old work on global
addressing, especially the "/" at the start.

On Tue, 22 Jul 2025 at 12:51, Krause, Pascal
<pascal.kra...@sap.com.invalid> wrote:
>
> Hello,
>
> I'm using the Qpid Broker-J docker image version 9.2.1 [1]. I want to add a 
> new exchange of type topic with the name "/car/bought/customer" via the 
> Broker-J UI. Unfortunately, this is not working, because I get the error 
> "Illegal or reserved exchange name!". It seems that I'm not allowed to use 
> "/" (slash) in the exchange name.
>
> When I create the exchange via REST API 
> "/api/latest/exchange/default/default" it is possible to create an exchange 
> with the name "/car/bought/customer", it is also shown in the UI. But when I 
> want to send messages to this topic, my Qpid JMS Client 2.7.0 [2] fails 
> always with the exception "Unknown destination '/car/bought/customer' 
> [condition = amqp:not-found].
>
> As soon as I replace the "/" with "." (in the broker and client), everything 
> works as expected.
>
> Question: Is there a way to use Qpid Broker-J with "/" in the topic name?
>
> Regards,
> Pascal
>
> [1] https://github.com/apache/qpid-broker-j/blob/9.2.1/qpid-docker/README.md
> [2] https://github.com/apache/qpid-jms

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org

  • Exchange Krause, Pascal
    • Re: Exchange Robbie Gemmell

Reply via email to