You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NmsConnectionFactory fails in case of failover configuration #114
string myconfig = "failover:(amqps://serverone:port?ssl.trustAll=true,amqps://servertwo:port?ssl.trustAll=true)?transport.reconnectAttempts=-1";
IConnectionFactory connectionFactory = new NMSConnectionFactory(myconfig);
Error : No IConnectionFactory implementation found for connection URI: [myconfig]
Solution :
using Apache.NMS.AMQP;
IConnectionFactory connectionFactory = new ConnectionFactory(myconfig);
Issue : the generic factory shouldn't fail in case of failover(), and find the protocol inside the parenthesis.
The "solution" code works but is less generic as it's now hard-coded to use a specific factory subclass.
Activity