Hi all, <div><br></div><div>I configured the RabbitMQ server with a new user and a virtual host, and set up my WCF bindings with the appropriate information.</div><div>Regardless my connections were always being set up for the default user and vhost. </div>
<div>Debugging the RabbitMQ.ServiceModel it turned out that the ConnectionFactory being used was missing the configuration settings, which I traced to the private constructor of RabbitMQTransportBindingElement:</div><div>
<br></div><div><div>        private RabbitMQTransportBindingElement(RabbitMQTransportBindingElement other)</div><div>            : this()</div><div>        {</div><div>            Broker = other.Broker;</div><div>            BrokerProtocol = other.BrokerProtocol;</div>
<div>        }</div></div><div><br></div><div>and resolved by adding initialization of the m_connectionFactory member:</div><div><br></div><div><div>        private RabbitMQTransportBindingElement(RabbitMQTransportBindingElement other)</div>
<div>            : this()</div><div>        {</div><div>            m_connectionFactory.Password = other.ConnectionFactory.Password;</div><div>            m_connectionFactory.UserName = other.ConnectionFactory.UserName;</div>
<div>            m_connectionFactory.VirtualHost = other.ConnectionFactory.VirtualHost;</div><div><br></div><div>            Broker = other.Broker;</div><div>            BrokerProtocol = other.BrokerProtocol;</div><div>        }</div>
</div><div><br></div><div>Is this a reasonable thing to do? </div><div><br></div>