C# ActiveMQ Connection Error

Hi all, my team is trying to use a TCP connection, with no positive results as yet. I have included code here, as well as the error they are receiving. Any insight as to what is going on would be greatly appreciated.


using UnityEngine;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.IO;
using Apache.NMS;
using Apache.NMS.ActiveMQ;

public class ActiveMqTest1 : MonoBehaviour
{

    public static IConnectionFactory factory;
    public static IConnection connection;
    public static ISession session;
    public static bool readyToConsumer = false;

    public void Awake()
    {
        factory = new ConnectionFactory("tcp://xxxxxxx:61616/"); 
         connection = factory.CreateConnection("admin","admin");
    }
}

The error they are receiving is as follows:

NMSConnectionException: Error creating transport.
Apache.NMS.ActiveMQ.Transport.TransportFactory.CreateTransportFactory (System.Uri location)

Thank you in advance for any assistance you may have.

Has the team tried using the trace logging to get more information
on the exception? Specify a broker URI like

tcp://x.y.z.w:61616?trace=true
(Assuming it’s client side)

As per ActiveMQ

Hi @SCTechTeam,

I too want to update a Unity UI from ActiveMQ. I am working a test POC updating a text on a canvas from a queue. I have this ActiveMQ working in a console app to test connectivity and am adapting it to run in Unity. I do not have it fully working (fighting with namespace issues), but thought this code may help.

You may want to try: tcp://localhost:61616, which works in the console app.

If you got this working, please let us know.