[rabbitmq-discuss] Stomp: after deleting a durable subscription, message is still available
Michael Justin
michael.justin at gmx.net
Tue Sep 6 19:28:35 BST 2011
In a test case, the Stomp client is able to receive messages from a
topic after sending the "delete durable subscription" command as shown
in http://www.rabbitmq.com/stomp.html
Is this a misunderstanding? I have used a unit test based on the similar
feature in ActiveMQ which tries to read a message from a topic after the
durable subscription has been removed. If a message can be read, the
test fails. With RabbitMQ, this is the case, a message is still in the
topic.
Many thanks in advance
Stomp log:
---- Create a durable subscription ------------------------------------
send:
CONNECT
login:guest
passcode:guest
client-id:durable-client-id
received:
CONNECTED
session:session-myExSC/0WqaZM9E+SF9hjQ==
heart-beat:0,0
version:1.0
send:
SUBSCRIBE
destination:/topic/TOOL.DEFAULT
receipt:yes
ack:auto
id:durable-subscription-name
persistent:true
received:
RECEIPT
receipt-id:yes
send:
DISCONNECT
client-id:durable-client-id
---- Send a Message that should be added to the durable sub -----------
send:
CONNECT
login:guest
passcode:guest
client-id:non-durable
received:
CONNECTED
session:session-IavksOGOZGIQFBvcAw5Sag==
heart-beat:0,0
version:1.0
send:
SEND
destination:/topic/TOOL.DEFAULT
content-length:9
persistent:true
content-type:text/plain
Message 1
send:
DISCONNECT
client-id:non-durable
---- Delete the subscription ------------------------------------------
send:
CONNECT
login:guest
passcode:guest
client-id:durable-client-id
received:
CONNECTED
session:session-P0Fetnb8moyqkmkRpYWCRA==
heart-beat:0,0
version:1.0
send:
UNSUBSCRIBE
id:durable-subscription-name
persistent:true
send:
DISCONNECT
client-id:durable-client-id
----- Activate the durable sub now and try to receive the message. -----
send:
CONNECT
login:guest
passcode:guest
client-id:durable-client-id
received:
CONNECTED
session:session-gRlqZ17pFswb2y3DJI/vsA==
heart-beat:0,0
version:1.0
send:
SUBSCRIBE
destination:/topic/TOOL.DEFAULT
receipt:yes
ack:auto
id:durable-subscription-name
persistent:true
received:
RECEIPT
receipt-id:yes
received:
MESSAGE
persistent:true
content-type:text/plain
subscription:durable-subscription-name
destination:/topic/TOOL.DEFAULT
message-id:T_durable-subscription-name@@session-gRlqZ17pFswb2y3DJI/vsA==@@1
content-length:9
send:
DISCONNECT
client-id:durable-client-id
More information about the rabbitmq-discuss
mailing list