2

I'm trying to publish on a queue (RabbitMQ) with x-dead-letter-exchange and x-message-ttl header via ruby stomp gem https://github.com/stompgem/stomp

It works fine via management panel, but I can't see my message published using this code:

    require 'stomp'

    client = Stomp::Client.new("guest", "guest", "localhost", 61613)
    client.publish("/queue/queue_with_dlx_header", "hello world!")

If I try this on a "normal" queue, the message gets published as expected.

Any advice?

0 Answers0