[rabbitmq-discuss] STOMP & ack

Matthias Radestock matthias at rabbitmq.com
Mon Aug 22 10:50:36 BST 2011


Lionel,

On 22/08/11 10:29, Lionel Cons wrote:
> I'm trying to use client-side acknowledgment in STOMP and it seems
> that RabbitMQ does not follow the STOMP 1.1 spec.
>
> Here is what I tried:
>   - p: send two messages to a queue
>   - c: subscribe with ack:client to the queue but acks only the 2nd message
>
> Unless I messed up my test, c only receives the first message and not
> the second one.
>
> The STOMP 1.1 spec [1] states that ack:client should be treated as
> cumulative so the broker should send both messages, even if the first
> one has not been ack'ed. Otherwise, there is no way the client can use
> cumulative acks, ack'ing several messages with one ACK frame.
>
> Is this indeed a bug?

This should work as expected - Rabbit supports all three ack modes 
defined by the spec.

Have you perhaps set a prefetch-count=1 header in the subscription?


Regards,

Matthias.


More information about the rabbitmq-discuss mailing list