Activemq.xml has Following configuration using discover Agent
<transportConnector name="openwire" uri="tcp://localhost:61616"
discoveryUri="multicast://default?group=TestPartition"/>
I am using stomp module of node.js. Now i need to make the connection to
my active mq broker. Not getting how to make the connection
using configured discover agent and get the below error
error: Error: connect ECONNREFUSED
at errnoException (net.js:769:11)
at Object.afterConnect [as oncomplete] (net.js:760:19)error name: Error
events.js:71
throw arguments[1]; // Unhandled 'error' event
^
Error: connect ECONNREFUSED
at errnoException (net.js:769:11)
at Object.afterConnect [as oncomplete] (net.js:760:19)
Earlier i was using below configuarion(no group was mentioned)
and was able to make the connection successfully
<transportConnector name="openwire" uri="tcp://localhost:61616"
discoveryUri="multicast://default"/>
Code i was using to make the connection
var stomp = require("stomp");
var stompClient = new stomp.Stomp("localhost", 8161);
var destHeaders = {
destination: '/topic/testTopic',
ack: 'acknowledgeResp'
};
client.connect();
client.on('connected', function() {
client.subscribe(destHeaders);
});
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en