Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
AMQP-2.0.0
-
None
-
None
Description
The AMQP protocol supports "virtual hosts" implemented via the Open frame, the HostName field.
QPID Broker-J default hostname/vhost is "default". RabbitMQ default hostname/vhost is "/". The current implementation reuses the URI host which is quite often not correct.
> open.HostName = remoteUri.Host;
There should be a way to set the "hostname" or "virtual host"
In the amqpnetlite client it is set like this
_connection = await Connection.Factory.CreateAsync(new Address(Address), new Open() { HostName="default"});
One way to implement this could be a connection uri parameter much like QPID JMS Client does with amqp.vhost option https://qpid.apache.org/releases/qpid-jms-2.1.0/docs/index.html