AWS ActiveMQ: how to connect from c#?

0

I have created AWS ActiveMQ broker: single.

Inbound rule for port 8162 is added, run console - it works. Ok, now I need to connect to the broker from my c# application. I do :

Uri connecturi2 = new Uri("activemq:tcp://" + hostName); var connectionFactory = new ConnectionFactory(connecturi2); var connection = connectionFactory.CreateConnection("mq_dev", "mq_dev!"); connection.Start();

and receive: Apache.NMS.ActiveMQ.IOException: 'Channel was inactive for too long: tcp://*2-1.mq.eu-west-1.amazonaws.com:5671

What is wrong? What should I fix?

Oleg
已提問 9 個月前檢視次數 64 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南