[rabbitmq-discuss] Federation and Stomp
Steve Powell
steve at rabbitmq.com
Tue Jan 14 17:34:25 GMT 2014
Joshua,
Emile has replied already, but I wanted to point out that RabbitMQ STOMP adapter
doesn't support "client-id"s on CONNECT (they are ignored), instead just the
destination (/topic/<name>) and the id are used to identify the subscription.
You may have read about client-ids in ActiveMQ documentation.
The SUBSCRIBE you showed us would create an exclusive auto-delete queue (not a
shared one) and this would therefore get deleted when the subscriber disconnected.
Try this:
SUBSCRIBE
destination:/topic/high.*
ack:client-individual
id:subscribe-03
persistent:true
^@
and then use exactly the same subscription after reconnect to receive messages.
You should UNSUBSCRIBE (see the doc) when this is no longer needed, or the
queue may stay around for a long time.
At present you cannot create a durable subscription to an /exchange/<x-name>/<r-key>
destination.
I hope this helps you: please let us know how you get on.
Steve Powell [M: +44-7815-838-558; H:+44-1962-775-598; W:+44-2380-111-528]
What I tell you three times is true.
Lewis Carroll; Hunting of the Snark: Fit the First
On 14 Jan 2014, at 05:08, joshua__lim <joshua__lim at hotmail.com> wrote:
> I read somewhere that says to create durable subscription for exchange, I'd
> need to set the client-id header on the CONNECT and the id header to a
> unique string and set persistent: true. This doesn't appear to work at this
> moment as subscribed-clients will lose messages sent to the exchange if they
> are not connected.
More information about the rabbitmq-discuss
mailing list