Can you use a direct message receiver to consume already-sent messages?
If someone sends a message to a queue. Can I use a direct message receiver to receive it after it has already been sent? In other words, the listener wasn't running while the message was sent, but I want to see if I can still receive it. I'm doing this in python.
Answers
-
You say the message is in a queue. If that's the case, you certainly can retrieve it later, but not with a direct message receiver. Direct messages are not persisted. If you published a direct message and it was subscribed to by a queue, the message is promoted and is now persistent.
So you would not use a direct message receiver to consume from the queue, you would use a persistent message reciver.
There are samples for doing this on Solace.dev
0