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
My assumption is ActiveMQ's stomp adapter accepts jms message properties as stomp headers, and your question is how to set headers in stompit. The first parameter of the channel send method can be passed a header object argument. Here's a code example:
hi, how do i set AMQ_SCHEDULED_DELAY property of the message (this property delays the sending of the message, http://activemq.apache.org/delay-and-schedule-message-delivery.html
I am using the following code to send the message
var channel = new stompit.ChannelFactory(connectionManager);
channel.send(queue, messageText, function(error) {
if (error) {
var error = new Error('Cannot sendMessage: ' + messageText + ' : ' + error);
callback(error);
}
else {
console.log('Successfully sent message on queue ' + queue + ':' + messageText);
callback()
}
The text was updated successfully, but these errors were encountered: