activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mjustin <>
Subject Disappearing messages with Stomp and Client Acknowledge
Date Thu, 12 Mar 2009 19:17:28 GMT


while working on the Delphi Stomp client library for ActiveMQ I encountered
a strange thing with CLIENT_ACKNOWLEDGE, which also appears with the Java
Stomp client implementation in version 5.2 and also (but not so frequently)
with 5.3.

For my test, I use the Java messageproducer and create 100 messages in the
TOOL.DEFAULT queue first:

Then, I consume 10 messages at a time using the StompConnection and a
modified StompTest class with this test method from command line (without

    public void testSubscribeWithAutoAck() throws Exception {

        String frame = "CONNECT\n" + "login: system\n" + "passcode:
manager\n\n" + Stomp.NULL;

        frame = stompConnection.receiveFrame();

        frame = "SUBSCRIBE\n" + "destination:/queue/TOOL.DEFAULT" + "\n" +
"ack:auto\n\n" + Stomp.NULL;

        for (int i=0; i < 10; i++) {
          frame = stompConnection.receiveFrame();

        frame = "DISCONNECT\n" + "\n\n" + Stomp.NULL;

        System.out.println("Disconnect frame sent");

With ActiveMQ 5.2 (and also my Delphi client), I frequently fail to retrieve
all messages, because suddenly all remaining messages in the queue

With ActiveMQ 5.3, I have so far only seen many cases where messages have
been skipped, and they are also no longer visible on the server. But no case
of disappearing of all remaining messages occurred in my small number of
tests, so it looks like something has improved.

With the native Java JMS client, I have never experienced this so it looks
like a Stomp specific issue. I have enabled Stomp trace level logging and
can see that the messages which disappear from the queue are all displayed
in the log as being sent, so they are somewhere (in a buffer?) between the
broker and the client, from the broker's point of view they have been
received, the client however doesn't fetch them from the connection.

Should I report it in JIRA?

Best Regards
Michael Justin
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message