I have a JAVA api which needs to consume data from ActiveMQ.
Client has provided me the host,Port and API key details.
Im a newby in this ActiveMQ and need suggestion on how to establish the initial queue connection since the queue works on tcp protocol.
I was suggested to use one of the client libraries supported by activeMQ in various languages
Currently i am referring : http://activemq.apache.org/cross-language-clients.html
Need suggestion on how to configure or execute (if i use "How to Send a Message to an Apache ActiveMQ Queue with Node.js" from the above link) on the below code.
const stompit = require('stompit');
stompit.connect({ host: 'localhost', port: 61613 }, (err, client) => {
const frame = client.send({ destination: 'SampleQueue' });
frame.write('Simples Assim');
frame.end();
client.disconnect();
});
Assuming i don't have any Node environment setup in my machine.
via Sach
No comments:
Post a Comment