We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm setting AMQ_SCHEDULED_DELAY in the send headers, setting it to 10 seconds, and schedulerSupport is set to true in the ActiveMQ config.
AMQ_SCHEDULED_DELAY
schedulerSupport
true
However, when I send a message to the queue, it is consumed immediately.
I even tried using the Send tool in ActiveMQ dashboard with the delay set, and that also got sent immediately.
My code to send messages:
stompit.connect({ host: `${process.env.MQ_ID}-1.mq.eu-west-1.amazonaws.com`, port: 61614, ssl: true, connectHeaders: { 'login': 'xxx', 'passcode': 'yyy', }, }, (err, client) => { let frame = client.send({ destination: 'TestQueue', AMQ_SCHEDULED_DELAY: 20000 }); frame.write(JSON.stringify({foo: {bar: 'baz'}, bar: ['foo', 'bar', 'baz']})); frame.end(); client.disconnect(); }); };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm setting
AMQ_SCHEDULED_DELAY
in the send headers, setting it to 10 seconds, andschedulerSupport
is set totrue
in the ActiveMQ config.However, when I send a message to the queue, it is consumed immediately.
I even tried using the Send tool in ActiveMQ dashboard with the delay set, and that also got sent immediately.
My code to send messages:
The text was updated successfully, but these errors were encountered: