Looks like there is a bug in Client code.
this._factory.HostName = "10.xx.xx.xx";
if I do above at the time of creating a factory I am able to connect.
If I am specifying host names in create connection then why I need host name while create factory?
Here is what I found:
In Connection Factory - Default host name set to:
public string HostName = "localhost";
Here is a code to Get\set end points:
public AmqpTcpEndpoint Endpoint
{
get
{
return new AmqpTcpEndpoint(this.HostName, this.Port, this.Ssl);
}
set
{
this.Port = value.Port;
this.HostName = value.HostName;
this.Ssl = value.Ssl;
}
}
CreateConnection(HostList) calls:
this.m_factory.CreateFrameHandler(this.m_factory.Endpoint.CloneWithHostname(hostname2));
protected void Init(string hostname) - Takes in host name bu not use it at all.
public IFrameHandler CreateFrameHandler()
{
return Protocols.DefaultProtocol.CreateFrameHandler(this.Endpoint, this.SocketFactory, this.RequestedConnectionTimeout);
*** this.EndPoint is localhost here and it fails
}
Please let me know if I am not doing something right.
Thanks
Timir