Dan Langford created AMQNET-817:
-----------------------------------

             Summary: Add ability to configure hostname/vhost in AMQP Open frame
                 Key: AMQNET-817
                 URL: https://issues.apache.org/jira/browse/AMQNET-817
             Project: ActiveMQ .Net
          Issue Type: New Feature
          Components: AMQP
    Affects Versions: AMQP-2.0.0
            Reporter: Dan Langford


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. 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]

 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to