-
1. QueueQuery seems to return stale message count
rlawson Mar 19, 2011 9:22 PM (in response to rlawson)Ok I found the issue but I'm not sure I understand why.
My messages sent were using a session created via createTransactionalClientSession
My messages being consumed were using a session created with createSession(false, false) and I was ack'ing the message in the MessageHandler.
I switched the MessageHandler to using a session created via createTransactionalClientSession and added a commit to the MessageHandler and now the message count updates fine.
Now the wierd thing is before even though message counts were not updating the messages were being taken off the queue
-
2. QueueQuery seems to return stale message count
ataylor Mar 20, 2011 3:47 AM (in response to rlawson)with a transacted session acks are only committed once the session.commit() is called. Alternatively at thius point you could have rolled back the session and the messages would have been put back on the queue