[ 
https://issues.apache.org/jira/browse/AMQNET-817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dan Langford updated AMQNET-817:
--------------------------------
    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]

 

 

  was:
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]

 

 


> 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
>            Priority: Major
>
> 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]
>  
>  



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

Reply via email to