You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the following code which is mentioned in the ReadMe for subscribing and publishing to the RabbitMQ Queue:
varStomp=require('stomp-client');vardestination='/queue/someQueueName';varclient=newStomp('127.0.0.1',61613,'user','pass');client.connect(function(sessionId){client.subscribe(destination,function(body,headers){console.log('This is the body of a message on the subscribed queue:',body);});client.publish(destination,'Oh herrow');});
However each time I start my Node.JS service I see a new queue created with some random name like: stomp-subscription-dmAADeGXr6fWuOgLSo13zA I already have the queue created in RabbitMQ and I would like to connect to the same queue each time instead of creating a new queue always as the queue created is temporary and gets deleted when the NodeJS service stops. Is there any way to connect to a persistent queue.
The text was updated successfully, but these errors were encountered:
I am using the following code which is mentioned in the ReadMe for subscribing and publishing to the RabbitMQ Queue:
However each time I start my Node.JS service I see a new queue created with some random name like: stomp-subscription-dmAADeGXr6fWuOgLSo13zA I already have the queue created in RabbitMQ and I would like to connect to the same queue each time instead of creating a new queue always as the queue created is temporary and gets deleted when the NodeJS service stops. Is there any way to connect to a persistent queue.
The text was updated successfully, but these errors were encountered: