C# send message to ActiveMQ server

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

C# send message to ActiveMQ server

This post has NOT been accepted by the mailing list yet.
I am running ActiveMQ on my server and now I am going to create an external client, but I have problems sending messages to ActiveMQ
I get a NMSException, when I try to connect using this code

using System;
using Apache.NMS;
using Apache.NMS.Stomp;

namespace TestExternalMessaging
  class Program
    private static string ActiveMQUri = "tcp://";

    static void Main(string[] args)
      IConnectionFactory Factory = new ConnectionFactory(ActiveMQUri);
      IConnection Connection = Factory.CreateConnection();

I have an idea, that I need some kind of authentication, but I have not set anything up and just using the default configuration for ActiveMQ 5.4.3. The only thing I have changed is

<transportConnector name="stomp" uri="stomp://"/>

And I know, that the IP-address is right

I am running ActiveMQ on a Debian server, and netstat -an | grep 6161 gives me

tcp6     0     0     :::61613     :::*     LISTEN