easternbloc / node-stomp-client

A STOMP client for Node.js
Other
93 stars 47 forks source link

Publish Persistent messages #74

Closed saqib-ahmed closed 5 years ago

saqib-ahmed commented 5 years ago

How can I send persistent messages to ActiveMQ queue? As per ActiveMQ's documentation, all JMS messages are by default persistent, but when I restart my broker all of my messages get lost which have been published using this client. How can I make the delivery durable?

for java clients, we have: http://activemq.apache.org/how-do-i-make-messages-durable.html http://activemq.apache.org/what-is-the-difference-between-persistent-and-non-persistent-delivery.html

saqib-ahmed commented 5 years ago

Resolved it by adding a header value in publish message: stompClient.publish('/queue/testing', "Some Message", {"persistent": "true"});