I'm working with the stomp protocol using the active mq implementation as stomp server/broker. I would like to have a message queue for a stomp client, that can be filled while the client is offline so that when the client connects from time to time it can fetch the massages that have been deposited while it was offline.
As I read, this can be achived with simple subscription or durable subscription. I decided for durable subscription. Is this the right way?
Then I was wondering wich messages and headers I should use on the client side. Actually I'm using the following
CONNECT
- login:
- passcode:
- client-id: some_mac_adr
SUBSCRIBE
- destination: /queue/some_mac_adr
- receipt: receipt-msg
- durable-subscriber-name: default
now waiting for messages
timeout -->
DISCONNECT
Is this message sequence correct? I'm furthermore not using the unsubscribe command. Is this correct as well?