Uploaded image for project: 'ActiveMQ .Net'
  1. ActiveMQ .Net
  2. AMQNET-817

Add ability to configure hostname/vhost in AMQP Open frame

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • AMQP-2.0.0
    • None
    • AMQP
    • 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

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            danlangford Dan Langford
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: